1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/emulators/cingb/Makefile
2016-01-31 18:02:59 +00:00

63 lines
1.5 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
LDFLAGS+= -lpthread
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
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.FAQ ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>