diff options
author | makc <makc@FreeBSD.org> | 2014-02-20 21:00:06 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2014-02-20 21:00:06 +0800 |
commit | 34d0e8d9b0d24e92396af0cc20c9de6da4ed9b63 (patch) | |
tree | 9663762c037a0a0b15712f18155e1beadaea69bc /databases/libiodbc/Makefile | |
parent | fb068c69bcfcc7f62e60ba006863761249f3c399 (diff) | |
download | freebsd-ports-gnome-34d0e8d9b0d24e92396af0cc20c9de6da4ed9b63.tar.gz freebsd-ports-gnome-34d0e8d9b0d24e92396af0cc20c9de6da4ed9b63.tar.zst freebsd-ports-gnome-34d0e8d9b0d24e92396af0cc20c9de6da4ed9b63.zip |
databases/libiodbc:
- Amend LICENSE (BSD3CLAUSE)
- Convert to USES=libtool:oldver
- Convert to options
- Add stage support
Diffstat (limited to 'databases/libiodbc/Makefile')
-rw-r--r-- | databases/libiodbc/Makefile | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/databases/libiodbc/Makefile b/databases/libiodbc/Makefile index 1c2c022fc977..3adedfe3b49a 100644 --- a/databases/libiodbc/Makefile +++ b/databases/libiodbc/Makefile @@ -7,32 +7,26 @@ CATEGORIES= databases MASTER_SITES= SF/iodbc/iodbc/${PORTVERSION} MAINTAINER= kde@FreeBSD.org -COMMENT= An ODBC 3.x driver manager, for universal data source access +COMMENT= ODBC 3.x driver manager, for universal data source access -LICENSE= BSD LGPL20 +LICENSE= BSD3CLAUSE LGPL20 LICENSE_COMB= dual LICENSE_FILE_BSD= ${WRKSRC}/LICENSE.BSD LICENSE_FILE_LGPL20= ${WRKSRC}/LICENSE.LGPL CONFLICTS= unixODBC-[0-9]* -USES= pathfix pkgconfig -USE_AUTOTOOLS= libtool +USES= libtool:oldver pathfix pkgconfig +GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-iodbc-inidir=${ETCDIR} USE_LDCONFIG= yes -MAN1= iodbc-config.1 iodbctest.1 iodbctestw.1 +OPTIONS_DEFINE= GTK2 DOCS EXAMPLES +OPTIONS_SUB= yes -.if defined(WITH_GUI) -USE_GNOME+= gtk20 -MAN1+= iodbcadm-gtk.1 -PLIST_SUB+= GUI="" -.else -CONFIGURE_ARGS+= --disable-gui -PLIST_SUB+= GUI="@comment " -.endif +GTK2_USE= GNOME=gtk20 +GTK2_CONFIGURE_ENABLE= gui -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e \ '/^SUBDIRS/s|samples||' ${WRKSRC}/Makefile.in @@ -40,19 +34,15 @@ post-patch: 's|-ldl||g' ${WRKSRC}/admin/libiodbc.pc.in post-install: - @${MKDIR} ${ETCDIR} - ${INSTALL_DATA} ${WRKSRC}/etc/odbc*.ini.sample ${ETCDIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}/${ETCDIR} + ${INSTALL_DATA} ${WRKSRC}/etc/odbc*.ini.sample ${STAGEDIR}/${ETCDIR} + @${MKDIR} ${STAGEDIR}/${DOCSDIR} .for f in AUTHORS ChangeLog NEWS README - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${DOCSDIR} .endfor -.endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}/${EXAMPLESDIR} .for f in Makefile.sample iodbctest.c - ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${STAGEDIR}/${EXAMPLESDIR} .endfor -.endif .include <bsd.port.mk> |