aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/unmakeself/Makefile
blob: af483c61c1d55e0ea2e028ad07b4a75eb52e1dd3 (plain) (blame)
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
32
33
34
35
36
37
# New ports collection makefile for:    unmakeself
# Date created:         31 Mar 2005
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=       unmakeself
PORTVERSION=        1.0
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-build:
    ${CC} ${CFLAGS} ${CPPFLAGS} -o ${WRKSRC}/unmakeself \
        ${FILESDIR}/unmakeself.c ${LDFLAGS}

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

.include <bsd.port.post.mk>