mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
37 lines
809 B
Makefile
37 lines
809 B
Makefile
# New ports collection makefile for: unmakeself
|
|
# Date created: 31 Mar 2005
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= unmakeself
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= archivers
|
|
DISTFILES=
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Extract Makeself archives
|
|
|
|
LDFLAGS+= -larchive -lbz2 -lz -lcrypto -lmd
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= bin/unmakeself
|
|
|
|
do-configure:
|
|
@${RM} -f ${WRKSRC}/config.h
|
|
@if ${GREP} -q memmem /usr/include/string.h; then \
|
|
${ECHO_CMD} "#define HAS_MEMMEM" > ${WRKSRC}/config.h; \
|
|
else \
|
|
${ECHO_CMD} "#undef HAS_MEMMEM" > ${WRKSRC}/config.h; \
|
|
fi
|
|
|
|
do-build:
|
|
${CC} ${CFLAGS} ${CPPFLAGS} -I${WRKSRC} -o ${WRKSRC}/unmakeself \
|
|
${FILESDIR}/unmakeself.c ${LDFLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unmakeself ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|