2001-03-28 17:35:42 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: paragui
|
|
|
|
# Date Created: Mar 28, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= paragui
|
2003-07-26 20:40:03 +02:00
|
|
|
PORTVERSION= 1.0.4
|
|
|
|
PORTREVISION= 0
|
2001-03-28 17:35:42 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2003-07-26 20:40:03 +02:00
|
|
|
MASTER_SITES= http://savannah.nongnu.org/download/paragui/stable.pkg/${PORTVERSION}/
|
2001-03-28 17:35:42 +02:00
|
|
|
|
2001-10-12 07:27:06 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:21:36 +01:00
|
|
|
COMMENT= Cross-platform high-level application framework and GUI library
|
2001-03-28 17:35:42 +02:00
|
|
|
|
2003-07-26 20:40:03 +02:00
|
|
|
LIB_DEPENDS= physfs-0.1.8:${PORTSDIR}/devel/physfs \
|
|
|
|
SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
|
2002-03-03 08:24:56 +01:00
|
|
|
SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
|
|
|
SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \
|
2002-09-17 09:41:05 +02:00
|
|
|
expat.4:${PORTSDIR}/textproc/expat2
|
2001-03-28 17:35:42 +02:00
|
|
|
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2002-06-19 10:18:10 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-06-19 01:04:31 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
|
2001-03-28 17:35:42 +02:00
|
|
|
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
|
2002-03-03 08:24:56 +01:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2001-03-28 17:35:42 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
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}"
|
|
|
|
|
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-07-26 20:40:03 +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 ; \
|
|
|
|
s|-L[./]*../src|&/.libs |g'
|
2001-03-28 17:35:42 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|