- Remove deprecated PTHREAD_*
- Use REINPLACE_CMD instead of PERL - Add PORTSCOUT - Simplify Makefile
This commit is contained in:
parent
c9b058d4e0
commit
c018ac04a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375943
1 changed files with 4 additions and 6 deletions
|
@ -21,21 +21,19 @@ LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
|
|||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PORTSCOUT= limit:^[0-9\.]*$$
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
CONFIGURE_ARGS= -o ${LOCALBASE}
|
||||
|
||||
PORTDOCS= Changes README README.adabas README.informix
|
||||
|
||||
MYODBC= unixodbc
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/my $$myodbc/ s|q{}|"${MYODBC}"|' ${WRKSRC}/Makefile.PL
|
||||
@${REINPLACE_CMD} -e '/my $$myodbc/ s|q{}|"unixodbc"|' ${WRKSRC}/Makefile.PL
|
||||
|
||||
post-configure:
|
||||
@${PERL} -pi -e 's/-lodbc/-lodbc ${PTHREAD_LIBS}/g;' \
|
||||
-e 's/$$/ ${PTHREAD_CFLAGS}/ if (/^CCFLAGS/);' \
|
||||
${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e 's|-lodbc|& -pthread|g' ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
|
|
Loading…
Reference in a new issue