1 # $NetBSD: Makefile,v 1.5 2012/10/03 21:56:01 wiz Exp $
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
15 ONLY_FOR_PLATFORM
= Linux-
*-i386 Linux-
*-powerpc SunOS-
*-i386 SunOS-
*-sparc Darwin-
*-* HPUX-
*-*
17 ONLY_FOR_PLATFORM
+= *-*-i386
*-*-powerpc
*-*-x86_64
*-*-ia64
*-*-mips
*-*-m68k
19 #WRKSRC= ${WRKDIR}/${DISTNAME}/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
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.
;; \
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"