aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-03-05 11:11:21 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-03-05 11:11:21 +0800
commit425f6fc4ed882de15be8e7f5ca5514564dc021eb (patch)
tree82e3d54d3c4959ee132d83b384a35dbd3cad892f
parent29e3ea24259937205b8ed192e35dc5772b2f4a2c (diff)
downloadfreebsd-ports-graphics-425f6fc4ed882de15be8e7f5ca5514564dc021eb.tar.gz
freebsd-ports-graphics-425f6fc4ed882de15be8e7f5ca5514564dc021eb.tar.zst
freebsd-ports-graphics-425f6fc4ed882de15be8e7f5ca5514564dc021eb.zip
- Simplify MASTER_SITES
- Add LICENSE_FILE - Simplify the port - Fix typo which prevented correct examples packaging
-rw-r--r--databases/postgresql-odbc/Makefile33
1 files changed, 17 insertions, 16 deletions
diff --git a/databases/postgresql-odbc/Makefile b/databases/postgresql-odbc/Makefile
index cd02156ab7b..d72da7387a4 100644
--- a/databases/postgresql-odbc/Makefile
+++ b/databases/postgresql-odbc/Makefile
@@ -2,10 +2,9 @@
PORTNAME= postgresql
PORTVERSION= 09.01.0200
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
-MASTER_SITES= ${MASTER_SITE_PGSQL}
-MASTER_SITE_SUBDIR= odbc/versions/src
+MASTER_SITES= PGSQL/odbc/versions/src
PKGNAMESUFFIX= -odbc
DISTNAME= psqlodbc-${PORTVERSION}
DIST_SUBDIR= postgresql
@@ -14,29 +13,31 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= PostgreSQL ODBC driver
LICENSE= LGPL20
+LICENSE_FILE= ${WRKSRC}/license.txt
-USES+= libtool pgsql
+LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
+
+USES= libtool pgsql
USE_OPENSSL= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-unixodbc=${LOCALBASE}
+INSTALL_TARGET= install-strip
-PORTDOCS= odbc/
-PORTEXAMPELS= odbc/
-PLIST_FILES= lib/psqlodbcw.so
+DOCSDIR= ${PREFIX}/share/doc/postgresql/odbc
+EXAMPLESDIR= ${PREFIX}/share/examples/postgresql/odbc
-LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
-BUILD_DEPENDS+= unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC
-CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE}
+PORTDOCS= *
+PORTEXAMPLES= *
+PLIST_FILES= lib/psqlodbcw.so
OPTIONS_DEFINE= DOCS EXAMPLES
-DATADIR_1= ${EXAMPLESDIR}/odbc
-DOCSDIR_1= ${DOCSDIR}/odbc
post-install:
- @${MKDIR} ${STAGEDIR}${DATADIR_1}
- ${INSTALL_DATA} ${WRKSRC}/*.sql ${STAGEDIR}${DATADIR_1}
- @${MKDIR} ${STAGEDIR}${DOCSDIR_1}
- ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR_1}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.sql ${STAGEDIR}${EXAMPLESDIR}/
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>