Skip to content
Snippets Groups Projects
Commit d64a3318 authored by Muhammad Moinur Rahman's avatar Muhammad Moinur Rahman
Browse files

databases/freetds-devel: Refactor

- Skip USES=autoreconf as we have configure scripts
- Sanitize MAN path
parent 6427c88f
No related branches found
No related tags found
No related merge requests found
PORTNAME= freetds
PORTVERSION= 1.4.144
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= https://www.freetds.org/files/current/ \
......@@ -13,16 +14,18 @@ WWW= http://www.freetds.org/
LICENSE= LGPL20
USES= autoreconf compiler:c11 cpe gettext-tools gmake iconv \
USES= compiler:c11 cpe gettext-tools gmake iconv \
libtool:keepla localbase:ldflags pkgconfig tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --docdir=${DOCSDIR} \
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} \
--docdir=${DOCSDIR} \
--enable-msdblib \
--enable-sybase-compat \
--sysconfdir=${ETCDIR} \
--with-tdsver=${TDS_VER}
--with-tdsver=${TDS_VER} \
--mandir=${PREFIX}/share/man
INSTALL_TARGET= install-strip
......@@ -69,15 +72,14 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|libgnutls-config|pkg-config gnutls|g' \
${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
's|/pool.conf|/pool.conf.sample|g ; \
s| common.h||g ; \
s|%%DOCSDIR%%|${STAGEDIR}${DOCSDIR}|g ; \
s|%%ICONV_LIB%%|${ICONV_LIB}|'
@${REINPLACE_CMD} -e 's|/pool.conf|/pool.conf.sample|g' \
${WRKSRC}/src/pool/Makefile.in
@${REINPLACE_CMD} -e 's|/freetds.conf|/freetds.conf.sample|g ; \
s|/locales.conf|/locales.conf.sample|g' ${WRKSRC}/Makefile.am
s|/locales.conf|/locales.conf.sample|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|$$ODBC_INC/isql.h|$$ODBC_INC/libiodbc/isql.h|g ; \
s|$$ODBC_INC/isqlext.h|$$ODBC_INC/libiodbc/isqlext.h|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|@LIBS@|@LIBS@ ${ICONV_LIB}|g' \
${WRKSRC}/src/tds/Makefile.in
post-install:
${INSTALL_DATA} ${WRKSRC}/interfaces ${STAGEDIR}${ETCDIR}/interfaces.sample
......
--- src/tds/Makefile.in.orig 2015-05-24 09:01:31 UTC
+++ src/tds/Makefile.in
@@ -297,7 +297,7 @@ LIBADD_DLOPEN = @LIBADD_DLOPEN@
LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
LIBICONV = @LIBICONV@
LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ %%ICONV_LIB%%
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
......@@ -21,15 +21,15 @@ include/syberror.h
include/sybfront.h
include/tds_sysdep_public.h
include/odbcss.h
man/man1/datacopy.1.gz
man/man1/freebcp.1.gz
man/man1/tsql.1.gz
man/man1/bsqldb.1.gz
man/man1/bsqlodbc.1.gz
man/man1/defncopy.1.gz
man/man1/fisql.1.gz
man/man1/osql.1.gz
man/man5/freetds.conf.5.gz
share/man/man1/datacopy.1.gz
share/man/man1/freebcp.1.gz
share/man/man1/tsql.1.gz
share/man/man1/bsqldb.1.gz
share/man/man1/bsqlodbc.1.gz
share/man/man1/defncopy.1.gz
share/man/man1/fisql.1.gz
share/man/man1/osql.1.gz
share/man/man5/freetds.conf.5.gz
lib/libct.a
lib/libct.la
lib/libct.so
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment