From 8273b7a58851136b427d6c1ad55400d0a74daba6 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Tue, 9 Jan 2024 00:49:52 +0100 Subject: [PATCH] databases/freetds: Refactor - Skip USES=autoreconf as we have configure scripts - Fix typo in USES=localbase:ldflag = Sanitize MAN path --- databases/freetds/Makefile | 17 +++++++++-------- databases/freetds/pkg-plist | 18 +++++++++--------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile index 0d32e406907a..37e83f67c0a0 100644 --- a/databases/freetds/Makefile +++ b/databases/freetds/Makefile @@ -1,6 +1,7 @@ PORTNAME= freetds PORTVERSION= 1.4.10 PORTEPOCH= 1 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= https://www.freetds.org/files/stable/ \ ftp://ftp.freetds.org/pub/freetds/stable/ @@ -13,11 +14,11 @@ LICENSE= GPLv2 LIB_DEPENDS= libgcrypt.so:security/libgcrypt -USES= autoreconf cpe gettext gmake iconv libtool:keepla localbase:ldflag \ +USES= cpe gettext gmake iconv libtool:keepla localbase:ldflags \ pkgconfig readline tar:bzip2 USE_LDCONFIG= yes -GNU_CONFIGURE= yes +HAS_CONFIGURE= yes CONFIGURE_ARGS= --enable-msdblib \ --enable-sybase-compat \ --sysconfdir=${ETCDIR} \ @@ -67,14 +68,14 @@ post-extract: post-patch: @${REINPLACE_CMD} -e 's|/freetds.conf|/freetds.conf.sample|g ; \ - s|/locales.conf|/locales.conf.sample|g ; \ - s| common.h||g' \ - ${WRKSRC}/Makefile.am + s|/locales.conf|/locales.conf.sample|g ; \ + s| common.h||g' \ + ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|/pool.conf|/pool.conf.sample|g' \ - ${WRKSRC}/src/pool/Makefile.am + ${WRKSRC}/src/pool/Makefile.in @${REINPLACE_CMD} -e 's|\($$with_iodbc/include\)|\1/libiodbc|g ; \ - s| odbcss.h||g' \ - ${WRKSRC}/configure.ac + s| odbcss.h||g' \ + ${WRKSRC}/configure post-install: ${INSTALL_DATA} ${WRKSRC}/interfaces ${STAGEDIR}${ETCDIR}/interfaces.sample diff --git a/databases/freetds/pkg-plist b/databases/freetds/pkg-plist index 277e7f237664..e7b2074e755e 100644 --- a/databases/freetds/pkg-plist +++ b/databases/freetds/pkg-plist @@ -31,15 +31,15 @@ lib/libsybdb.la lib/libsybdb.so lib/libsybdb.so.5 lib/libsybdb.so.5.1.0 -man/man1/bsqldb.1.gz -man/man1/bsqlodbc.1.gz -man/man1/datacopy.1.gz -man/man1/defncopy.1.gz -man/man1/fisql.1.gz -man/man1/freebcp.1.gz -man/man1/osql.1.gz -man/man1/tsql.1.gz -man/man5/freetds.conf.5.gz +share/man/man1/bsqldb.1.gz +share/man/man1/bsqlodbc.1.gz +share/man/man1/datacopy.1.gz +share/man/man1/defncopy.1.gz +share/man/man1/fisql.1.gz +share/man/man1/freebcp.1.gz +share/man/man1/osql.1.gz +share/man/man1/tsql.1.gz +share/man/man5/freetds.conf.5.gz %%ODBC%%bin/bsqlodbc %%ODBC%%lib/libtdsodbc.so %%ODBC%%lib/libtdsodbc.so.0