1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/emulators/cingb/Makefile
Pawel Pekala e29aa567a6 - Add staging support
- More precise LICENSE
- Conver to USES=tar:bzip2
2014-04-09 14:17:26 +00:00

63 lines
1.6 KiB
Makefile

# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# $FreeBSD$
PORTNAME= cingb
PORTVERSION= 0.31
CATEGORIES= emulators
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet another Nintendo GameBoy(tm) emulator
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:bzip2
USE_XORG= x11 xext xv
MAKE_ENV= X11BASE="${LOCALBASE}"
ALL_TARGET= standard
PORTDOCS= README README.FAQ
PLIST_FILES= bin/cingb bin/cingb_conf
CPPFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH} != "sparc64" && ${ARCH} != "powerpc"
CPPFLAGS+= -DUSE_LITTLE_ENDIAN
.endif
do-configure:
cd ${WRKSRC} && ${SED} -e \
's|%%%endian%%%|$${CPPFLAGS}|g ; \
s|^CFLAGS|#CFLAGS|g ; \
s|%%%prefix-setup%%%||g ; \
s|-I/usr/include -I/usr/include/glide||g ; \
s|-I/usr/include/X11||g ; \
s|%%%pthread%%%|$${LDFLAGS}|g ; \
s|%%%libext%%%|-lXext|g ; \
s|%%%libsocket%%%||g ; \
s|%%%libnsl%%%||g ; \
s|%%%LIBXV%%%|-lXv|g ; \
s|^OPTMZ|#OPTMZ|g ; \
s|%%%joystick%%%|-DBSD_JOYSTICK|g ; \
s|%%%framebuffer%%%||g ; \
s|%%%mitshm%%%|-DMIT_SHM|g ; \
s|%%%XVDEF%%%|-DWITH_XVIDEO|g ; \
s|%%%OSDEF%%%|-D_BSD|g ; \
s|%%%sound%%%|-DSOUND|g ; \
s|%%%joyconf%%%|conf|g' < Makefile.templ > Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cingb ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cingb_conf ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.FAQ ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>