mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
9346b215f0
are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
111 lines
2.8 KiB
Makefile
111 lines
2.8 KiB
Makefile
# New ports collection makefile for: alienarena
|
|
# Date created: 11 May 2006
|
|
# Whom: alepulver
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= alienarena
|
|
PORTVERSION= 2011.753
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo/distfiles/ \
|
|
http://ftp.jeuxlinux.fr/files/ \
|
|
http://mirror.ipgn.com.au/games/alienarena/ \
|
|
http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \
|
|
http://offload2.icculus.org:9090/alienarena/Files/ \
|
|
http://offload1.icculus.org:9090/alienarena/Files/ \
|
|
${MASTER_SITE_GENTOO:S|$|distfiles/|}
|
|
DISTNAME= ${PORTNAME}-7.53-linux20111227
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Alien Arena (native version)
|
|
|
|
RUN_DEPENDS= ${DATADIR}/data1/default.cfg:${PORTSDIR}/games/alienarena-data
|
|
|
|
USE_DOS2UNIX= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_WRKSRC=${WRKDIR}/${PORTNAME}-7.53/
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
CONFIGURE_ARGS+=--with-xf86vm \
|
|
--with-xf86dga
|
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} --exclude "data1" -xf -
|
|
|
|
MAKE_ENV= WITH_DATADIR=yes WITH_LIBDIR=yes \
|
|
DATADIR="${DATADIR}" LIBDIR="${LIBDIR}"
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-7.53/source
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS= CLIENT "Build client" on \
|
|
DEDICATED "Build dedicated server" on
|
|
|
|
PLIST_SUB= LIBDIR=${LIBDIR:S/${PREFIX}\///}
|
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_CLIENT)
|
|
USE_PKGCONFIG= yes
|
|
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl \
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png \
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
|
USE_GL= yes
|
|
USE_OPENAL= soft alut
|
|
USE_XORG= xxf86dga xxf86vm
|
|
.endif
|
|
|
|
.if !defined(WITH_CLIENT) && defined(WITH_DEDICATED)
|
|
CONFIGURE_ARGS+=--disable-client
|
|
.endif
|
|
|
|
.if !defined(WITH_CLIENT) && !defined(WITH_DEDICATED)
|
|
IGNORE= needs at least one executable (CLIENT or DEDICATED)
|
|
.endif
|
|
|
|
.if defined(WITH_CLIENT)
|
|
PLIST_SUB+= CLIENT=""
|
|
.else
|
|
PLIST_SUB+= CLIENT="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_DEDICATED)
|
|
PLIST_SUB+= DEDICATED=""
|
|
.else
|
|
PLIST_SUB+= DEDICATED="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/client/snd_openal.c
|
|
@${REINPLACE_CMD} -e "s|.codered|.config/alienarena|g" ${WRKSRC}/qcommon/qcommon.h
|
|
# Resolve name collision with jpeg-8
|
|
${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \
|
|
${WRKSRC}/ref_gl/r_image.c
|
|
|
|
do-install:
|
|
${MKDIR} ${LIBDIR}/arena ${LIBDIR}/data1
|
|
${LN} -s ${DATADIR}/arena/* ${LIBDIR}/arena
|
|
${LN} -s ${DATADIR}/botinfo ${LIBDIR}
|
|
${LN} -s ${DATADIR}/data1/* ${LIBDIR}/data1
|
|
.if defined(WITH_CLIENT)
|
|
${INSTALL_PROGRAM} ${WRKSRC}/crx \
|
|
${PREFIX}/bin/${PORTNAME}
|
|
.endif
|
|
.if defined(WITH_DEDICATED)
|
|
${INSTALL_PROGRAM} ${WRKSRC}/crx-ded \
|
|
${PREFIX}/bin/${PORTNAME}-ded
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_CMD}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_CMD}
|
|
|
|
.include <bsd.port.post.mk>
|