freebsd-ports/games/adonthell/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

66 lines
2 KiB
Makefile

# Created by: Miguel Mendez <flynn@energyhq.es.eu.org>
# $FreeBSD$
# $MCom: ports/games/adonthell/Makefile,v 1.1 2006/10/04 20:13:33 ahze Exp $
PORTNAME= adonthell
PORTVERSION= 0.3.5
PORTREVISION= 13
CATEGORIES= games
MASTER_SITES= SAVANNAH
DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX} \
wastesedge-src-${WEDGE_VERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Free role playing game
LICENSE= GPLv2
LICENSE_DISTFILES= ${DISTFILES}
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
libfreetype.so:${PORTSDIR}/print/freetype2
USES= gettext gmake python
USE_SDL= mixer ttf sdl
USE_GCC= any
GNU_CONFIGURE= yes
CONFIGURE_ENV= PYPACKAGE="${PYTHON_CMD}" ac_cv_path_P_SWIG=no
CONFIGURE_ARGS= --disable-py-debug
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/adonthell \
bin/adonthell-${PORTVERSION:R} \
bin/adonthell-wastesedge \
share/pixmaps/wastesedge_16x16.xpm \
share/pixmaps/wastesedge_32x32.xpm
PORTDATA= *
BROKEN_sparc64= Does not build on sparc64
DESKTOP_ENTRIES="Adonthell" "" "" "adonthell" "" ""
WEDGE_VERSION= 0.3.5
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e \
's|-g -Wall|$$CFLAGS -Wall|g ; \
s|-lpthread|-pthread|g' configure
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \
's|@adonthell_binary@|${PREFIX}/bin/adonthell|' Makefile.in
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \
's|test $$adonthell_major_ver -eq 0 .*|true ;|' configure
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \
's|^[[:space:]]*_||' scripts/modules/player_text.py
post-install:
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} \
&& ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS} \
--with-adonthell-binary=${STAGEDIR}${PREFIX}/bin/adonthell \
${CONFIGURE_TARGET}
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${SETENV} HOME=${WRKDIR} \
${MAKE_CMD}
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${SETENV} HOME=${WRKDIR} \
${MAKE_CMD} ${MAKE_ARGS} ${INSTALL_TARGET}
.include <bsd.port.mk>