1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/archivers/arj/Makefile
Renato Botelho 92445d8442 . Add LICENSE
. Remove conditional to install DOCS
2013-10-31 23:27:20 +00:00

65 lines
1.5 KiB
Makefile

# Created by: Konstantin Reznichenko <kot@premierbank.dp.ua>
# $FreeBSD$
PORTNAME= arj
PORTVERSION= 3.10.22
PORTREVISION= 4
CATEGORIES= archivers
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.78_3.10%20build%2022
MAINTAINER= garga@FreeBSD.org
COMMENT= Open-source ARJ
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS
USES= gmake
USE_AUTOTOOLS= autoconf
MAKE_JOBS_UNSAFE= yes
CONFIGURE_WRKSRC= ${WRKSRC}/gnu
CFLAGS+= -fPIC
MAKEFILE= GNUmakefile
STRIP=
LANGUAGE?= en
MAKE_ENV+= "LOCALE=${LANGUAGE}"
PORTDOCS= *
PLIST_FILES= bin/arj \
bin/arj-register \
bin/arjdisp \
bin/rearj \
lib/arj/arjcrypt.so \
man/man1/arj-register.1.gz \
man/man1/arj.1.gz \
man/man1/arjdisp.1.gz \
man/man1/rearj.1.gz
PLIST_DIRS= lib/arj
PORTSCOUT= skipv:3.10g
.include <bsd.port.pre.mk>
.if ${ARCH} == "powerpc"
BROKEN= Does not install on powerpc
.endif
post-patch:
@${REINPLACE_CMD} -e 's!/etc!${LOCALBASE}/etc!' \
${WRKSRC}/arj.c ${WRKSRC}/file_reg.c ${WRKSRC}/rearj.c
@${REINPLACE_CMD} -e 's!-O2!!' ${WRKSRC}/gnu/configure.in
@${REINPLACE_CMD} -e 's!^static !!' ${WRKSRC}/integr.c
@${REINPLACE_CMD} -e 's!strnlen!_strnlen!g' ${WRKSRC}/fardata.c
pre-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} prepare)
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} COPYING debug.txt ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/resource/en && \
${INSTALL_DATA} arjl.txt arjs.txt history.txt readme.txt unix.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>