2001-02-17 21:51:31 +00:00
|
|
|
# New ports collection makefile for: asc
|
|
|
|
# Date created: 16 February 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= asc
|
2002-10-18 16:36:22 +00:00
|
|
|
PORTVERSION= 1.10.2
|
2001-02-17 21:51:31 +00:00
|
|
|
CATEGORIES= games
|
2001-10-22 13:37:55 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= asc-hq
|
|
|
|
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
|
2001-02-17 21:51:31 +00:00
|
|
|
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
|
2002-04-17 12:38:02 +00:00
|
|
|
LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \
|
2001-02-17 21:51:31 +00:00
|
|
|
SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
2001-09-03 15:16:55 +00:00
|
|
|
gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
|
2001-09-14 08:42:27 +00:00
|
|
|
SDLmm.8:${PORTSDIR}/devel/sdlmm \
|
2002-10-18 16:36:22 +00:00
|
|
|
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
|
|
|
|
paragui.3:${PORTSDIR}/x11-toolkits/paragui
|
2001-08-15 20:33:16 +00:00
|
|
|
.if !exists(/usr/bin/bzip2)
|
|
|
|
LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2
|
|
|
|
.endif
|
2001-02-17 21:51:31 +00:00
|
|
|
|
2001-10-22 13:37:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2001-02-17 21:51:31 +00:00
|
|
|
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
|
|
|
|
CPPFLAGS="`${SDL_CONFIG} --cflags`" \
|
2001-05-23 05:46:56 +00:00
|
|
|
LIBS="`${SDL_CONFIG} --libs` -lgnugetopt -lm"
|
2001-02-17 21:51:31 +00:00
|
|
|
|
|
|
|
pre-patch:
|
2001-03-29 16:35:19 +00:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2001-02-17 21:51:31 +00:00
|
|
|
@find ${WRKSRC} \( -name "*.cpp" -or -name "*.h" \) | xargs \
|
|
|
|
${PERL} -pi -e 's|malloc\.h|stdlib.h|g'
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${RM} -f ${WRKSRC}/config.cache
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|