aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-11-10 07:18:59 +0800
committerfjoe <fjoe@FreeBSD.org>2003-11-10 07:18:59 +0800
commit0ef347a5ee95289cc778026173908ec16438d24a (patch)
treea96e3ce0bb3c500becf877a792b9a53359b11b04 /editors
parent642a067c8b5d3914ca2f2fef4421d81288ae3147 (diff)
downloadfreebsd-ports-gnome-0ef347a5ee95289cc778026173908ec16438d24a.tar.gz
freebsd-ports-gnome-0ef347a5ee95289cc778026173908ec16438d24a.tar.zst
freebsd-ports-gnome-0ef347a5ee95289cc778026173908ec16438d24a.zip
Add USE_BDB_VER knob, bump PORTREVISION.
PR: 58127 Submitted by: KATO Tsuguru <tkato (at) prontomail.com>
Diffstat (limited to 'editors')
-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>