aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/skim/Makefile
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2004-08-12 15:14:44 +0800
committervanilla <vanilla@FreeBSD.org>2004-08-12 15:14:44 +0800
commitd132dfa986b48a20d5f07068321cfb7349be4063 (patch)
treee7d88550f448479bd7e57086bc69d36e4022f956 /textproc/skim/Makefile
parentcb64c85d8cba7dbd9dea887b7622bb338b3f8301 (diff)
downloadfreebsd-ports-gnome-d132dfa986b48a20d5f07068321cfb7349be4063.tar.gz
freebsd-ports-gnome-d132dfa986b48a20d5f07068321cfb7349be4063.tar.zst
freebsd-ports-gnome-d132dfa986b48a20d5f07068321cfb7349be4063.zip
1: Make scim buildable on 4-X.
2: Add sf.net to MASTER_SITE. 3: make other ports BROKEN on 4-X. PR: ports/70326 Submitted by: maintainer
Diffstat (limited to 'textproc/skim/Makefile')
-rw-r--r--textproc/skim/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/textproc/skim/Makefile b/textproc/skim/Makefile
index 4d14e35f597b..93ef814d7a0d 100644
--- a/textproc/skim/Makefile
+++ b/textproc/skim/Makefile
@@ -7,6 +7,7 @@
PORTNAME= skim
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= textproc kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://freedesktop.org/~cougar/skim/downloads/
@@ -22,10 +23,21 @@ USE_ICONV= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -D__STDC_ISO_10646__" \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+
+CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+CONFIGURE_ENV+= CXXFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/stlport" \
+ LDFLAGS="-L${LOCALBASE}/lib -lstlport_gcc -lintl ${PTHREAD_LIBS}"
+.else
+CONFIGURE_ENV+= CXXFLAGS="-I${LOCALBASE}/include -D__STDC_ISO_10646__" \
+ LDFLAGS="-L${LOCALBASE}/lib -lintl"
+.endif
pre-configure:
${REINPLACE_CMD} "s,-pedantic,,g; \
s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
@@ -35,4 +47,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO} To display this message again, type make post-install
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>