summaryrefslogtreecommitdiff
path: root/archivers/unmakeself/Makefile
blob: 08b9659e137d05b18ef2a03c134faacae6d937d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PORTNAME=	unmakeself
PORTVERSION=	1.1
PORTREVISION=	1
CATEGORIES=	archivers
DISTFILES=

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Extract Makeself archives

USES=		libarchive
LIBS+=		-larchive
NO_WRKSUBDIR=	yes

PLIST_FILES=	bin/unmakeself

do-configure:
	@${RM} ${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} ${LIBS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/unmakeself ${STAGEDIR}/${PREFIX}/bin

.include <bsd.port.mk>