2013-09-20 15:11:20 +02:00
|
|
|
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
|
2005-04-10 22:46:05 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-11-06 21:08:48 +01:00
|
|
|
PORTNAME= unmakeself
|
|
|
|
PORTVERSION= 1.1
|
|
|
|
CATEGORIES= archivers
|
2005-04-10 22:46:05 +02:00
|
|
|
DISTFILES=
|
|
|
|
|
2008-04-29 07:11:44 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-11-06 21:08:48 +01:00
|
|
|
COMMENT= Extract Makeself archives
|
2005-04-10 22:46:05 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -larchive -lbz2 -lz -lcrypto -lmd
|
2006-11-06 21:08:48 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2005-04-10 22:46:05 +02:00
|
|
|
|
2006-11-06 21:08:48 +01:00
|
|
|
PLIST_FILES= bin/unmakeself
|
2005-04-10 22:46:05 +02:00
|
|
|
|
2006-11-07 17:07:35 +01:00
|
|
|
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
|
|
|
|
|
2005-04-10 22:46:05 +02:00
|
|
|
do-build:
|
2006-11-07 17:07:35 +01:00
|
|
|
${CC} ${CFLAGS} ${CPPFLAGS} -I${WRKSRC} -o ${WRKSRC}/unmakeself \
|
2005-04-10 22:46:05 +02:00
|
|
|
${FILESDIR}/unmakeself.c ${LDFLAGS}
|
|
|
|
|
|
|
|
do-install:
|
2013-09-25 15:26:03 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unmakeself ${STAGEDIR}/${PREFIX}/bin
|
2005-04-10 22:46:05 +02:00
|
|
|
|
2008-06-25 03:09:33 +02:00
|
|
|
.include <bsd.port.mk>
|