mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
5cbbf58479
- Add stage support - Convert LIB_DEPENDS to new syntax
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= duel
|
|
PORTVERSION= 0.98
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= alepulver
|
|
DISTNAME= lin${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Overhead, OpenGL space shooter
|
|
|
|
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
libftgl.so:${PORTSDIR}/graphics/ftgl
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
USE_BZIP2= yes
|
|
USE_GL= gl
|
|
USE_SDL= sdl
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= `${SDL_CONFIG} --cflags` `freetype-config --cflags` -I${LOCALBASE}/include -I${LOCALBASE}/include/FTGL
|
|
LDFLAGS+= `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
SUB_FILES= ${PORTNAME}-sh
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${CP} -R ${WRKSRC}/runDir/* ${STAGEDIR}${DATADIR}
|
|
${FIND} ${STAGEDIR}${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
${FIND} ${STAGEDIR}${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
|
|
|
|
.include <bsd.port.mk>
|