aboutsummaryrefslogtreecommitdiff
path: root/editors/poedit
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-11-09 23:18:59 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-11-09 23:18:59 +0000
commit7a266bc1772c52e700b0ac0791340fd15a0c60fd (patch)
tree5a40f22a808b2caa874ac95849fba3114e7db73d /editors/poedit
parent737c1ededb20ee8e67fa81c2e53568744e3a8235 (diff)
downloadports-7a266bc1772c52e700b0ac0791340fd15a0c60fd.tar.gz
ports-7a266bc1772c52e700b0ac0791340fd15a0c60fd.zip
Notes
Diffstat (limited to 'editors/poedit')
-rw-r--r--editors/poedit/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/editors/poedit/Makefile b/editors/poedit/Makefile
index 4cb6db3570cd..760a6cee4779 100644
--- a/editors/poedit/Makefile
+++ b/editors/poedit/Makefile
@@ -8,16 +8,16 @@
PORTNAME= poedit
PORTVERSION= 1.2.3
+PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-COMMENT= gettext catalogs (.po files) editor
+COMMENT= Gettext catalogs (.po files) editor
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
-LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 \
- intl.5:${PORTSDIR}/devel/gettext \
+LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext \
wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
USE_X_PREFIX= yes
@@ -28,14 +28,30 @@ CONFIGURE_ARGS= --with-wx-config=${X11BASE}/bin/wxgtk2-2.4-config
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CPPFLAGS= -I${LOCALBASE}/include/db3 -I${LOCALBASE}/include \
- ${PTHREAD_CFLAGS}
+CPPFLAGS= -I${LOCALBASE}/include/db${USE_BDB_VER} \
+ -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAN1= poedit.1
+.if defined(WITH_BDB_VER)
+USE_BDB_VER= ${WITH_BDB_VER}
+.else
+USE_BDB_VER= 3
+.endif
+
+.if ${USE_BDB_VER} == 41
+LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41
+.elif ${USE_BDB_VER} == 4
+LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4
+.elif ${USE_BDB_VER} == 3
+LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
+.else
+BROKEN= "WITH_BDB_VER must be 3, 4 or 41"
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e 's|db-3.1;|db-3.1 db3;|g ; \
+ @${REINPLACE_CMD} -e 's|db-3.1;|db-3.1 db${USE_BDB_VER};|g ; \
s|-O3||g' ${WRKSRC}/configure
.include <bsd.port.mk>