aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-08-26 10:09:18 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-08-26 10:09:18 +0800
commit6b38d3e71e0edb8aef6964894af28d70faf8c55e (patch)
treed7915f7d541ea7b0a263c3ef8e4106773a310e40
parentb59b9f90048c3d885e70b564c1f1d4f1c01394eb (diff)
downloadfreebsd-ports-gnome-6b38d3e71e0edb8aef6964894af28d70faf8c55e.tar.gz
freebsd-ports-gnome-6b38d3e71e0edb8aef6964894af28d70faf8c55e.tar.zst
freebsd-ports-gnome-6b38d3e71e0edb8aef6964894af28d70faf8c55e.zip
- Minor rework: simplify plist handling, drop unused statements
- Drop .la files, no dependees require them - Strip libraries - Fix libdbi include path (fixes build for certain options combs like only MYSQL enabled)
-rw-r--r--databases/libdbi-drivers/Makefile21
-rw-r--r--databases/libdbi-drivers/pkg-plist42
2 files changed, 12 insertions, 51 deletions
diff --git a/databases/libdbi-drivers/Makefile b/databases/libdbi-drivers/Makefile
index f36a2138fd7d..c7d71331b5c0 100644
--- a/databases/libdbi-drivers/Makefile
+++ b/databases/libdbi-drivers/Makefile
@@ -2,8 +2,8 @@
# $FreeBSD$
PORTNAME= libdbi-drivers
-DISTVERSION= 0.9.0
-PORTREVISION= 2
+PORTVERSION= 0.9.0
+PORTREVISION= 3
CATEGORIES= databases devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DISTVERSION}
@@ -12,28 +12,31 @@ COMMENT= Drivers for libdbi
LIB_DEPENDS= libdbi.so:${PORTSDIR}/databases/libdbi
-USES= gmake libtool:keepla
+USES= gmake libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static \
- --with-dbi-incdir=${LOCALBASE}/include/dbi
+ --with-dbi-incdir=${LOCALBASE}/include
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${DISTVERSION}
+INSTALL_TARGET= install-strip
+
+PORTDOCS= *
+PLIST_DIRSTRY= lib/dbd
OPTIONS_DEFINE= DOCS
OPTIONS_MULTI= DRIVER
OPTIONS_MULTI_DRIVER= MYSQL PGSQL SQLITE3
-
OPTIONS_DEFAULT= MYSQL PGSQL SQLITE3
-
OPTIONS_SUB= yes
+
MYSQL_USE= MYSQL=yes
MYSQL_CONFIGURE_WITH= mysql
+MYSQL_PLIST_FILES= lib/dbd/libdbdmysql.so
PGSQL_USE= PGSQL=yes
PGSQL_CONFIGURE_WITH= pgsql
+PGSQL_PLIST_FILES= lib/dbd/libdbdpgsql.so
SQLITE3_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3
SQLITE3_CONFIGURE_WITH= sqlite3
-
-PLIST_SUB+= INGRES="@comment "
-PLIST_SUB+= ORACLE="@comment "
+SQLITE3_PLIST_FILES= lib/dbd/libdbdsqlite3.so
post-patch:
@${REINPLACE_CMD} -e 's|-O20|${CFLAGS}|g' \
diff --git a/databases/libdbi-drivers/pkg-plist b/databases/libdbi-drivers/pkg-plist
deleted file mode 100644
index 87f605f8c6f3..000000000000
--- a/databases/libdbi-drivers/pkg-plist
+++ /dev/null
@@ -1,42 +0,0 @@
-%%MYSQL%%lib/dbd/libdbdmysql.la
-%%MYSQL%%lib/dbd/libdbdmysql.so
-%%PGSQL%%lib/dbd/libdbdpgsql.la
-%%PGSQL%%lib/dbd/libdbdpgsql.so
-%%SQLITE3%%lib/dbd/libdbdsqlite3.la
-%%SQLITE3%%lib/dbd/libdbdsqlite3.so
-@dirrmtry lib/dbd
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/c40.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/c44.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/c98.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/copying-fdl.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/f29.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/index.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/x47.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql/x61.html
-%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_mysql.pdf
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/copying-fdl.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/f30.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/index.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/install-build.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/install-prereq.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/install.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/intro.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/options.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql/specific.html
-%%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dbd_pgsql.pdf
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/c34.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/c47.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/c98.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/c134.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/copying-fdl.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/f23.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/index.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/x50.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/x64.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/x137.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3/x209.html
-%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dbd_sqlite3.pdf
-%%MYSQL%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/dbd_mysql
-%%PGSQL%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/dbd_pgsql
-%%SQLITE3%%%%PORTDOCS%%@dirrm %%DOCSDIR%%/dbd_sqlite3
-%%PORTDOCS%%@dirrm %%DOCSDIR%%