freebsd-ports/archivers/unmakeself/Makefile
Gabor Kovesdan 42542fb076 - Remove the DESTDIR modifications from individual ports as we have a new,
fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:41:30 +00:00

45 lines
1 KiB
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= jylefort@FreeBSD.org
COMMENT= Extract Makeself archives
LDFLAGS= -larchive -lbz2 -lz
USE_GETOPT_LONG=yes
NO_WRKSUBDIR= yes
PLIST_FILES= bin/unmakeself
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502103
BUILD_DEPENDS+= ${LOCALBASE}/lib/libarchive.a:${PORTSDIR}/archivers/libarchive
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
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.post.mk>