mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Respect CC/CFLAGS
- Drop unused cruft PR: 162593 Submitted by: Jan Beich <jbeich@tormail.net>
This commit is contained in:
parent
5d8a59d2eb
commit
6d0ba0f9e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294590
1 changed files with 6 additions and 17 deletions
|
@ -16,13 +16,6 @@ MASTER_SITE_SUBDIR= miwi
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= A collection of C modules potentially useful to any project
|
COMMENT= A collection of C modules potentially useful to any project
|
||||||
|
|
||||||
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
|
||||||
|
|
||||||
USE_GMAKE= yes
|
|
||||||
MAKE_ENV= prefix="${PREFIX}" \
|
|
||||||
MINVERSION="${SHLIB_MAJOR}" \
|
|
||||||
RPM_OPT_FLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
|
||||||
MAKE_JOBS_UNSAFE= yes
|
MAKE_JOBS_UNSAFE= yes
|
||||||
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
|
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
@ -35,15 +28,11 @@ MANCOMPRESSED= yes
|
||||||
SHLIB_MAJOR= 0
|
SHLIB_MAJOR= 0
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/usr/local|\$${PREFIX}|g ; \
|
@${REINPLACE_CMD} -e 's,-g,$$(CFLAGS),' \
|
||||||
s|^CC|#CC|g ; \
|
-e '/^prefix/s/=/?=/' \
|
||||||
s|^MAJ|#MAJ|g ; \
|
-e 's/prefix/PREFIX/' \
|
||||||
s|^MIN|#MIN|g ; \
|
${WRKSRC}/Makefile
|
||||||
s|\.\$${MAJVERSION}||g ; \
|
@${REINPLACE_CMD} -Ee 's,"g?cc","${CC}",' \
|
||||||
s|^RPM_OPT_FLAGS|#RPM_OPT_FLAGS|g ; \
|
${WRKSRC}/mktool.c
|
||||||
s| -lc| \$${LDFLAGS}|g ; \
|
|
||||||
s|install -m ...|\$${BSD_INSTALL_DATA}|g ; \
|
|
||||||
s|-/sbin/ldconfig.*$$||g ; \
|
|
||||||
s|-D_XOPEN_SOURCE=500||g' ${WRKSRC}/Makefile
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue