aboutsummaryrefslogtreecommitdiff
path: root/games/asc/Makefile
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-02-17 21:51:31 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-02-17 21:51:31 +0000
commit9937c7f036f476a572a778bc1611f7b9efd8de0e (patch)
treef353fc809ca8bc063d7c4939b16b1d1247c87168 /games/asc/Makefile
parent73fc3e35045c58651664473b50477c0ae26d9db2 (diff)
downloadports-9937c7f036f476a572a778bc1611f7b9efd8de0e.tar.gz
ports-9937c7f036f476a572a778bc1611f7b9efd8de0e.zip
Notes
Diffstat (limited to 'games/asc/Makefile')
-rw-r--r--games/asc/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/games/asc/Makefile b/games/asc/Makefile
new file mode 100644
index 000000000000..22c3f1867fcb
--- /dev/null
+++ b/games/asc/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: asc
+# Date created: 16 February 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= asc
+PORTVERSION= 1.3.8
+CATEGORIES= games
+MASTER_SITES= ftp://asc-hq.sourceforge.net/pub/asc-hq/develop/ \
+ ftp://asc-hq.sourceforge.net/pub/asc-hq/ \
+ http://www.asc-hq.org/develop/ \
+ http://www.asc-hq.org/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-beta.src
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DATAFILE}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel \
+ SDL_image.10:${PORTSDIR}/graphics/sdl_image \
+ bz2.1:${PORTSDIR}/archivers/bzip2
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-beta
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
+ CPPFLAGS="`${SDL_CONFIG} --cflags`" \
+ LIBS="`${SDL_CONFIG} --libs` -lm"
+
+DATAFILE= main.con
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
+ @find ${WRKSRC} \( -name "*.cpp" -or -name "*.h" \) | xargs \
+ ${PERL} -pi -e 's|malloc\.h|stdlib.h|g'
+
+pre-configure:
+ @${RM} -f ${WRKSRC}/config.cache
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/asc
+ ${INSTALL_DATA} ${DISTDIR}/${DATAFILE} ${PREFIX}/share/asc
+
+.include <bsd.port.mk>