aboutsummaryrefslogtreecommitdiffstats
path: root/misc/xtar/Makefile
blob: f9f3e7e827f51b438fde673a5674d1529b30bf16 (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
# Created by: Andreas Kohout <shanee@rabbit.augusta.de>
# $FreeBSD$

PORTNAME=   xtar
PORTVERSION=    1.4
PORTREVISION=   4
CATEGORIES= misc
MASTER_SITES=   XCONTRIB/utilities

MAINTAINER= ports@FreeBSD.org
COMMENT=    View and manipulate contents of a tar file

USES=       motif
USE_XORG=   ice sm x11 xext xp xt
MAKEFILE=   Makefile.noimake
ALL_TARGET= ${PORTNAME}
MAKE_ARGS=  XINC="-I${LOCALBASE}/include" XMLIB="${MOTIFLIB}" \
        APPDIR="${PREFIX}/lib/X11/app-defaults" \
        BINDIR="${PREFIX}/bin" LIBDIR="${PREFIX}/lib/X11/xtar" \
        MANDIR="${MAN1PREFIX}/man/man1" OPTIMISATION="${CFLAGS}" \
        ANSIFLAG=-ansi CC="${CC}" RANLIB=:

PLIST_FILES=    bin/xtar lib/X11/xtar/xtar.doc lib/X11/app-defaults/XTar \
        man/man1/xtar.1.gz

post-patch:
    @${REINPLACE_CMD} -E 's,(APP|BIN|LIB|MAN)DIR),DESTDIR)$$(&,' \
        ${WRKSRC}/Makefile.noimake
    @${REINPLACE_CMD} -e 's/pipe\.c/& regexpr.c/' \
        ${WRKSRC}/common/Makefile.noimake

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>