aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/stella/Makefile
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-01-13 22:29:56 +0800
committerarved <arved@FreeBSD.org>2003-01-13 22:29:56 +0800
commit88f664aa10a4bf244f63863f162a7960cee88c16 (patch)
tree641fbcae7cd503b71e9705367dfc20f98c0082a2 /emulators/stella/Makefile
parenta5880834332fe0ef41c04b0509dc0c258a95c5f7 (diff)
downloadfreebsd-ports-gnome-88f664aa10a4bf244f63863f162a7960cee88c16.tar.gz
freebsd-ports-gnome-88f664aa10a4bf244f63863f162a7960cee88c16.tar.zst
freebsd-ports-gnome-88f664aa10a4bf244f63863f162a7960cee88c16.zip
Support CC/CFLAGS/CXX/CXXFLAGS properly
PR: 46944 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'emulators/stella/Makefile')
-rw-r--r--emulators/stella/Makefile24
1 files changed, 11 insertions, 13 deletions
diff --git a/emulators/stella/Makefile b/emulators/stella/Makefile
index ff4e8995fbcd..fb6e3c7916eb 100644
--- a/emulators/stella/Makefile
+++ b/emulators/stella/Makefile
@@ -7,6 +7,7 @@
PORTNAME= stella
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,17 +15,15 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
-USE_XLIB= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+BUILD_WRKSRC= ${WRKSRC}/src/build
-PORTTOP= ${WRKDIR}/${PKGNAME}
-WRKSRC= ${PORTTOP}/src/build
+USE_XLIB= yes
USE_GMAKE= yes
+MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
MAKEFILE= makefile
ALL_TARGET= freebsd-x
-USE_XLIB= yes
-
-DOCSDIR= ${PREFIX}/share/doc/stella
DOCS= docs/stella.html
GFX= docs/graphics/chucky_cheese.png \
docs/graphics/circuit.png \
@@ -35,25 +34,24 @@ GFX= docs/graphics/chucky_cheese.png \
docs/graphics/space_invaders.png
post-build:
- @(cd ${PORTTOP}/src/ui/sound && \
+ @(cd ${WRKSRC}/src/ui/sound && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} oss)
do-install:
.for exe in src/build/stella.x11 src/ui/sound/stella-sound
- ${INSTALL_PROGRAM} ${PORTTOP}/${exe} ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/${exe} ${PREFIX}/bin/
.endfor
- ${MKDIR} ${PREFIX}/share/stella
- ${INSTALL_DATA} ${PORTTOP}/src/emucore/stella.pro \
- ${PREFIX}/share/stella/
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/emucore/stella.pro ${DATADIR}/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for doc in ${DOCS}
- ${INSTALL_DATA} ${PORTTOP}/${doc} ${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/
.endfor
${MKDIR} ${DOCSDIR}/graphics
.for gfx in ${GFX}
- ${INSTALL_DATA} ${PORTTOP}/${gfx} ${DOCSDIR}/graphics/
+ ${INSTALL_DATA} ${WRKSRC}/${gfx} ${DOCSDIR}/graphics/
.endfor
.endif