freebsd-ports/devel/clanlib/Makefile
Baptiste Daroussin 9346b215f0 new devel/pkgconf added to replace devel/pkg-config. new version of pkg-config
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)
2012-07-26 05:40:22 +00:00

52 lines
1.4 KiB
Makefile

# New ports collection makefile for: clanlib
# Date created: 10 May 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $Carpetsmoker: ports/devel/clanlib/Makefile,v 1.3 2008/03/18 13:48:24 carpetsmoker Exp $
# $FreeBSD$
#
PORTNAME= clanlib
PORTVERSION= 0.8.1
PORTREVISION= 12
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= http://www.clanlib.org/download/releases-0.8/
DISTNAME= ClanLib-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform game SDK
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
mikmod:${PORTSDIR}/audio/libmikmod \
vorbis:${PORTSDIR}/audio/libvorbis
WRKSRC= ${WRKDIR}/ClanLib-${PORTVERSION}
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15 ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-clanJavaScript --disable-docs
USE_GMAKE= yes
USE_XORG= x11 xmu xi
USE_GNOME= gnomehack
USE_LDCONFIG= yes
USE_SDL= gfx
USE_GL= yes
USE_PKGCONFIG= yes
.include <bsd.port.pre.mk>
post-patch:
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|SDL/SDL|SDL|g'
@${REINPLACE_CMD} -e 's|(CLvoid)|()|' \
${WRKSRC}/Sources/API/GL/opengl_wrap.h
@${REINPLACE_CMD} -e 's|-lasound||' \
${WRKSRC}/Sources/Sound/Makefile.in
@${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|g' \
${WRKSRC}/Documentation/Utilities/webbuilder.pl.in
.include <bsd.port.post.mk>