1 # $NetBSD: Makefile,v 1.47 2012/07/26 22:10:28 abs Exp $
6 MASTER_SITES
= http
://gxemul.sourceforge.net
/src
/
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 HOMEPAGE
= http
://gxemul.sourceforge.net
/
10 COMMENT
= Framework for full-system computer architecture emulation
12 PKG_INSTALLATION_TYPES
= overwrite pkgviews
20 LIBS.SunOS
+= -lsocket
-lnsl
22 INSTALLATION_DIRS
= bin
${PKGMANDIR}/man1 share
/doc
/${PKGBASE}
25 ${INSTALL_PROGRAM} ${WRKSRC}/gxemul
${DESTDIR}${PREFIX}/bin
26 ${INSTALL_MAN} ${WRKSRC}/man
/gxemul
.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
27 .for f in README HISTORY LICENSE
28 ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share
/doc
/${PKGBASE}
30 cd
${WRKSRC}/doc
&& pax
-rwppm .
${DESTDIR}${PREFIX}/share
/doc
/${PKGBASE}
32 PKG_OPTIONS_VAR
= PKG_OPTIONS.gxemul
33 PKG_SUPPORTED_OPTIONS
= x11
34 PKG_SUGGESTED_OPTIONS
= x11
36 .
include "../../mk/bsd.options.mk"
38 .if
!empty
(PKG_OPTIONS
:Mx11
)
39 GLOBAL_LDFLAGS
= -L
${X11BASE}/lib
${COMPILER_RPATH_FLAG}${X11BASE}/lib
41 SUBST_STAGE.x11
= post-patch
42 SUBST_FILES.x11
= configure
43 SUBST_SED.x11
= -e
's|-L/usr/X11R6/lib|${GLOBAL_LDFLAGS:Q}|g'
44 SUBST_SED.x11
+= -e
's|/usr/X11R6|${X11BASE}|g'
45 SUBST_MESSAGE.x11
= Fixing X linking flags.
47 .
include "../../x11/libX11/buildlink3.mk"
50 .
include "../../mk/bsd.pkg.mk"