Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / gxemul / Makefile
blob41644b1074c5842cbc69f07232f2cec242626fe8
1 # $NetBSD: Makefile,v 1.47 2012/07/26 22:10:28 abs Exp $
3 DISTNAME= gxemul-0.6.0
4 PKGREVISION= 3
5 CATEGORIES= emulators
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
14 USE_TOOLS+= pax
16 USE_LANGUAGES= c c++
17 HAS_CONFIGURE= yes
18 BUILD_TARGET= build
20 LIBS.SunOS+= -lsocket -lnsl
22 INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/${PKGBASE}
24 do-install:
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}
29 .endfor
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
40 SUBST_CLASSES+= x11
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"
48 .endif
50 .include "../../mk/bsd.pkg.mk"