2001-03-28 17:35:42 +02:00
|
|
|
# New ports collection makefile for: paragui
|
|
|
|
# Date Created: Mar 28, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= paragui
|
2006-06-21 19:18:05 +02:00
|
|
|
PORTVERSION= 1.1.8
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 2
|
2001-03-28 17:35:42 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2006-06-21 19:18:05 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
2006-05-12 15:56:23 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-06-21 19:18:05 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
2001-03-28 17:35:42 +02:00
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2006-06-21 19:18:05 +02:00
|
|
|
COMMENT= Cross-platform high-level application framework and GUI library(devel)
|
2001-03-28 17:35:42 +02:00
|
|
|
|
2005-07-24 15:02:43 +02:00
|
|
|
LIB_DEPENDS= physfs-1.0.1:${PORTSDIR}/devel/physfs \
|
2006-06-21 19:18:05 +02:00
|
|
|
expat.6:${PORTSDIR}/textproc/expat2 \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
sigc-1.2.5:${PORTSDIR}/devel/libsigc++12
|
|
|
|
|
|
|
|
CONFLICTS= paragui-[0-9]*
|
2001-03-28 17:35:42 +02:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-01-23 23:24:30 +01:00
|
|
|
USE_SDL= sdl image ttf
|
2006-06-21 19:18:05 +02:00
|
|
|
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-10-02 19:29:47 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2003-07-29 05:38:22 +02:00
|
|
|
LDFLAGS="-L${PREFIX}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2001-03-28 17:35:42 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2003-07-26 20:40:03 +02:00
|
|
|
SHLIB_VER= 4
|
2002-03-03 08:24:56 +01:00
|
|
|
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
|
|
|
|
|
2006-06-21 19:18:05 +02:00
|
|
|
OPTIONS= DEBUG "Debug information" off
|
|
|
|
|
2003-10-02 19:29:47 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-21 19:18:05 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2003-10-02 19:29:47 +02:00
|
|
|
.endif
|
|
|
|
|
2002-04-08 22:27:21 +02:00
|
|
|
post-extract:
|
|
|
|
@${RM} -f ${WRKSRC}/src/physfs/platform.c
|
|
|
|
|
2001-04-26 20:44:30 +02:00
|
|
|
post-patch:
|
2003-07-26 20:40:03 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|LT_CURRENT=.*$$|LT_CURRENT=${SHLIB_VER}|g ; \
|
2002-03-03 08:24:56 +01:00
|
|
|
s|`sdl-config |`\$$\{SDL_CONFIG\} |g' ${WRKSRC}/configure
|
2003-10-02 19:29:47 +02:00
|
|
|
|
2002-06-19 01:04:31 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|[$][(]SDL_CFLAGS[)]|\$\(PARAGUI_CFLAGS\)|g ; \
|
2003-07-26 20:40:03 +02:00
|
|
|
s|lib/pkgconfig|libdata/pkgconfig|g ; \
|
2005-06-03 22:18:13 +02:00
|
|
|
s|-L[./]*../src|&/.libs |g ; \
|
|
|
|
s|-release $$(LT_RELEASE)||g'
|
2001-03-28 17:35:42 +02:00
|
|
|
|
2003-10-02 19:29:47 +02:00
|
|
|
.include <bsd.port.post.mk>
|