aboutsummaryrefslogtreecommitdiff
path: root/databases/pgadmin3-12/Makefile
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-06-27 21:18:25 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-06-27 21:18:25 +0000
commit964b1fe1d9aecaa1087c175e05698838b5cf4569 (patch)
tree133a3527833ecad8c9ba3196f5e61f5f9c7b9bf7 /databases/pgadmin3-12/Makefile
parent40852f28b2019d3dca560de9fd6afecdbf4fcfd8 (diff)
downloadports-964b1fe1d9aecaa1087c175e05698838b5cf4569.tar.gz
ports-964b1fe1d9aecaa1087c175e05698838b5cf4569.zip
Notes
Diffstat (limited to 'databases/pgadmin3-12/Makefile')
-rw-r--r--databases/pgadmin3-12/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/databases/pgadmin3-12/Makefile b/databases/pgadmin3-12/Makefile
index ac3192554585..6e7c6644c4bd 100644
--- a/databases/pgadmin3-12/Makefile
+++ b/databases/pgadmin3-12/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= pgadmin3
-PORTVERSION= 1.0.1
-PORTREVISION= 3
+PORTVERSION= 1.0.2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR= pgadmin3/release/src
@@ -17,21 +16,31 @@ COMMENT= PostgreSQL database design and management system
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-wx=${X11BASE}
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
POSTGRESQL_PORT?= databases/postgresql7
+post-patch:
+ @${FIND} ${WRKSRC}/src \( -name '*.cpp' -or -name '*.h' \) -print0 | \
+ ${XARGS} -0 ${REINPLACE_CMD} -e 's,wxNotifyEvent,wxCommandEvent,g'
+
.include <bsd.port.pre.mk>
-#.if ${OSVERSION} < 500000
-LIB_DEPENDS+= wx_gtk2_stc-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2-contrib
-CONFIGURE_ARGS+=--with-wx-config=wxgtk2-2.4-config
-#.else
-#LIB_DEPENDS+= wx_gtk2u_stc-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2-unicode-contrib
-#CONFIGURE_ARGS+=--with-wx-config=wxgtk2u-2.4-config
-#.endif
+.if defined(WITH_UNICODE)
+.if ${OSVERSION} < 500000
+IGNORE= Systems prior to FreeBSD 5.0 currently out of support
+.else
+LIB_DEPENDS+= wx_gtk2u_stc-2.5.2:${PORTSDIR}/x11-toolkits/wxgtk2-unicode-contrib-devel
+CONFIGURE_ARGS+=--with-wx-config=wxgtk2u-2.5-config
+.endif
+.else
+LIB_DEPENDS+= wx_gtk2_stc-2.5.2:${PORTSDIR}/x11-toolkits/wxgtk2-contrib-devel
+CONFIGURE_ARGS+=--with-wx-config=wxgtk2-2.5-config
+.endif # WITH_UNICODE
.include <bsd.port.post.mk>