Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / kegs / Makefile
blobd169d9242486697f59e6a14c7b2c6a79024c3557
1 # $NetBSD: Makefile,v 1.5 2012/10/03 21:56:01 wiz Exp $
4 DISTNAME= kegs.0.91
5 PKGNAME= kegs-0.91
6 PKGREVISION= 1
7 CATEGORIES= emulators
8 MASTER_SITES= http://kegs.sourceforge.net/
10 MAINTAINER= christtrekker@users.sourceforge.net
11 HOMEPAGE= http://kegs.sourceforge.net/
12 COMMENT= Apple IIgs emulator for Mac OS X, Win32, Linux, and Unix/X11
14 # Official support
15 ONLY_FOR_PLATFORM= Linux-*-i386 Linux-*-powerpc SunOS-*-i386 SunOS-*-sparc Darwin-*-* HPUX-*-*
16 # Probably work
17 ONLY_FOR_PLATFORM+= *-*-i386 *-*-powerpc *-*-x86_64 *-*-ia64 *-*-mips *-*-m68k
19 #WRKSRC= ${WRKDIR}/${DISTNAME}/src
20 CONFIGURE_DIRS= src
21 BUILD_DIRS= src
22 USE_TOOLS+= gmake perl
23 INSTALLATION_DIRS+= bin share/doc/${PKGBASE} share/${PKGBASE}
25 # Has problems finding shared libs on some platforms...
26 CFLAGS+= ${COMPILER_RPATH_FLAG}${X11BASE}/lib
28 LIBS.SunOS+= -lsocket -lnsl
30 pre-build:
31 if [ -L ${WRKSRC}/src/vars ]; then ${RM} ${WRKSRC}/src/vars; fi
32 @${ECHO} Building for ${OPSYS} on ${MACHINE_ARCH}...
33 case "${OPSYS}_${MACHINE_ARCH}" in \
34 Linux_ppc) ${LN} -s ${WRKSRC}/src/vars_linuxppc ${WRKSRC}/src/vars; break;;\
35 Linux_i386) ${LN} -s ${WRKSRC}/src/vars_x86linux ${WRKSRC}/src/vars; break;;\
36 SunOS_sparc*) ${LN} -s ${WRKSRC}/src/vars_solaris ${WRKSRC}/src/vars; break;;\
37 SunOS_i386) ${LN} -s ${WRKSRC}/src/vars_x86solaris ${WRKSRC}/src/vars; break;;\
38 Darwin*) ${LN} -s ${WRKSRC}/src/vars_mac ${WRKSRC}/src/vars; break;; \
39 HPUX*) ${LN} -s ${WRKSRC}/src/vars_hp ${WRKSRC}/src/vars; break;; \
40 *_i386) ${ECHO} "${OPSYS} on ${MACHINE_ARCH} is not officially supported, but ought to work..."; ${LN} -s ${WRKSRC}/src/vars_x86linux ${WRKSRC}/src/vars; break;;\
41 *_ppc|*_powerpc) ${ECHO} "${OPSYS} on ${MACHINE_ARCH} is not officially supported, but ought to work..."; ${LN} -s ${WRKSRC}/src/vars_linuxppc ${WRKSRC}/src/vars; break;;\
42 *_amd64|*_ia64|*_x86_64) ${ECHO} "${MACHINE_ARCH} is not supported, but might work..."; ${LN} -s ${WRKSRC}/src/vars_x86linux ${WRKSRC}/src/vars; break;;\
43 *_mips|*_m68k) ${ECHO} "${MACHINE_ARCH} is not supported, but might work..."; ${LN} -s ${WRKSRC}/src/vars_linuxppc ${WRKSRC}/src/vars; break;;\
44 *) ${ECHO} Your platform is not recognized. ;; \
45 esac
47 do-install:
48 ${INSTALL_PROGRAM} ${WRKSRC}/xkegs ${DESTDIR}${PREFIX}/bin/xkegs
49 ${INSTALL_DATA} ${WRKSRC}/*txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
50 ${INSTALL_DATA} ${WRKSRC}/config.kegs ${DESTDIR}${PREFIX}/share/${PKGBASE}
52 .include "../../x11/xproto/buildlink3.mk"
53 .include "../../x11/libX11/buildlink3.mk"
54 .include "../../x11/libXext/buildlink3.mk"
55 .include "../../mk/bsd.pkg.mk"