blob: 8bbe625bb8ec1866699cd0435876942eedc2e3f4 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: libygp
# Date created: 2 August 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME?= libYGP
PORTVERSION= 0.8.10
CATEGORIES= devel
MASTER_SITES= SF
MASTER_SITE_SUBDIR= libymp
DISTNAME= libYGP-${PORTVERSION}
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Yet another General Purpose library
LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig gnomehack
USE_LDCONFIG= yes
USE_GETTEXT= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE} --with-gmp
.if ${PORTNAME:M*XGP}
LIB_DEPENDS+= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \
YGP-${PORTVERSION}.0:${PORTSDIR}/devel/libYGP
PLIST_SUB+= YGP="@comment " XGP=""
USE_GGNOME+= gtkhtml3
CFG_PATCH+= s/mozembed/mozembedNO/g;
XGP_PATCH+= s/(^@AM.*)?GtkMozViewer(.lo|.c|.Plo@am__quote@)//;
MKIN_PATCH+= s/^(SUBDIRS = ).*$$/\1XGP/;
.else
PLIST_SUB+= XGP="@comment " YGP=""
MKIN_PATCH+= s/@MYSUBDIRS@/YGP/;
.endif
post-patch:
@${REINPLACE_CMD} -Ee 's/(test.*)==/\1=/g;${CFG_PATCH}' ${WRKSRC}/configure
@${REINPLACE_CMD} -Ee '${XGP_PATCH}' ${WRKSRC}/XGP/Makefile.in
@${REINPLACE_CMD} -Ee '${MKIN_PATCH}' ${WRKSRC}/Makefile.in
.if ${PORTNAME:M*XGP}
@${FIND} ${WRKSRC} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e 's/ygp-cfg/xgp-cfg/g'
@${CP} ${WRKSRC}/ygp-cfg.h ${WRKSRC}/xgp-cfg.h
@${CP} ${WRKSRC}/ygp-cfg.h.in ${WRKSRC}/xgp-cfg.h.in
@${REINPLACE_CMD} -e 's|libgtkhtml-3.8|libgtkhtml-3.14|g' \
${WRKSRC}/configure
.endif
post-install:
@${LN} -sf ${PREFIX}/lib/${PORTNAME}-${PORTVERSION}.so \
${PREFIX}/lib/${PORTNAME}-${PORTVERSION}.so.0
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= does not compile on 4.x
.endif
.include <bsd.port.post.mk>
|