1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/emulators/cingb/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

61 lines
1.4 KiB
Makefile

# New ports collection makefile for: cingb
# Date created: 16 April 2001
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cingb
PORTVERSION= 0.29
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/V029A
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet another Nintendo GameBoy(tm) emulator
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_XORG= x11 xext
ALL_TARGET= standard
PORTDOCS= README README.FAQ
PLIST_FILES= bin/cingb bin/cingb_conf
CPPFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
.if ${ARCH} != "sparc64" && ${ARCH} != "powerpc"
CPPFLAGS+= -DUSE_LITTLE_ENDIAN
.endif
do-configure:
cd ${WRKSRC} && ${SED} -e \
's|gcc|$${CC}|g ; \
s|/usr/X11R6|$${LOCALBASE}|g ; \
s|^CFLAGS|#CFLAGS|g ; \
s|^OPTMZ|#OPTMZ|g ; \
s|%%%endian%%%|$${CPPFLAGS}|g ; \
s|%%%pthread%%%|$${LDFLAGS}|g ; \
s|%%%libext%%%|-lXext|g ; \
s|%%%libsocket%%%||g ; \
s|%%%libnsl%%%||g ; \
s|%%%joystick%%%|-DBSD_JOYSTICK|g ; \
s|%%%framebuffer%%%||g ; \
s|%%%mitshm%%%|-DMIT_SHM|g ; \
s|%%%sound%%%|-DSOUND|g ; \
s|%%%joyconf%%%|conf|g' < Makefile.templ > Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cingb ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cingb_conf ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.FAQ ${DOCSDIR}
.endif
.include <bsd.port.post.mk>