60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
29 lines
713 B
Makefile
29 lines
713 B
Makefile
# Created by: stas
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= safe-iop
|
|
PORTVERSION= 0.3.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Safe integer operation library for C
|
|
|
|
USES= tar:tgz
|
|
USE_LDCONFIG= yes
|
|
ALL_TARGET= so
|
|
CFLAGS+= -fPIC
|
|
PLIST_FILES= include/safe_iop.h \
|
|
lib/libsafe_iop.so.0
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E -e 's,(^CC[[:space:]]*=.*),#\1,' \
|
|
-e 's,(^CFLAGS[[:space:]]*)=.*,\1+= -Iinclude,' \
|
|
-e 's,(^VERSION[[:space:]]*=[[:space:]]*[[:digit:]]+).*,\1,' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/libsafe_iop.so.0 ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/include/safe_iop.h ${STAGEDIR}${PREFIX}/include
|
|
|
|
.include <bsd.port.mk>
|