blob: b48e60889c8f147636a879b17712ea6bc8ab246d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# ex:ts=8
# New ports collection makefile for: paragui
# Date Created: Mar 28, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= paragui
PORTVERSION= 1.0.4
PORTREVISION= 15
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform high-level application framework and GUI library
LIB_DEPENDS= physfs.1:${PORTSDIR}/devel/physfs \
expat.6:${PORTSDIR}/textproc/expat2
CONFLICTS= paragui-devel-[0-9]*
USE_AUTOTOOLS= libtool
USE_SDL= sdl image ttf
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${PREFIX}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
USE_LDCONFIG= yes
SHLIB_VER= 4
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
PORTSCOUT= limit:^1\.0\.
.include <bsd.port.pre.mk>
post-extract:
@${RM} -f ${WRKSRC}/src/physfs/platform.c
post-patch:
@${REINPLACE_CMD} -e 's|LT_CURRENT=.*$$|LT_CURRENT=${SHLIB_VER}|g ; \
s|`sdl-config |`\$$\{SDL_CONFIG\} |g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|[$][(]SDL_CFLAGS[)]|\$\(PARAGUI_CFLAGS\)|g ; \
s|lib/pkgconfig|libdata/pkgconfig|g ; \
s|-L[./]*../src|&/.libs |g ; \
s|-release $$(LT_RELEASE)||g'
.include <bsd.port.post.mk>
|