aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/arj/Makefile
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2009-03-05 01:33:55 +0800
committergarga <garga@FreeBSD.org>2009-03-05 01:33:55 +0800
commitd737d9592e73ccd71efd3c3dc67bc1c86c2bed51 (patch)
treeec28f85a5951afec11ae8e66066c7811cd9ccd34 /archivers/arj/Makefile
parenta67c450c3109b8190665a1d8f0fce9758fef247e (diff)
downloadfreebsd-ports-gnome-d737d9592e73ccd71efd3c3dc67bc1c86c2bed51.tar.gz
freebsd-ports-gnome-d737d9592e73ccd71efd3c3dc67bc1c86c2bed51.tar.zst
freebsd-ports-gnome-d737d9592e73ccd71efd3c3dc67bc1c86c2bed51.zip
- Fix build on recent -CURRENT renaming strnlen local function to _strnlen to
avoid conflict with recent introduced function with the same name on string.h - Use SF macro for MASTER_SITES - Remove CFLAGS change from CONFIGURE_ENV and use CHFLAGS += - Use PORTDOCS - Remove 5 lines pkg-plist and use PLIST_FILES - Change post-extract to post-patch, as used on most ports
Diffstat (limited to 'archivers/arj/Makefile')
-rw-r--r--archivers/arj/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index 861852af3968..8907a2f14e72 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -9,8 +9,7 @@ PORTNAME= arj
PORTVERSION= 3.10.22
PORTREVISION= 1
CATEGORIES= archivers
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= SF
MAINTAINER= garga@FreeBSD.org
COMMENT= Open-source ARJ
@@ -18,19 +17,28 @@ COMMENT= Open-source ARJ
USE_AUTOTOOLS= autoconf:262
USE_GMAKE= yes
CONFIGURE_WRKSRC= ${WRKSRC}/gnu
-CONFIGURE_ENV= CFLAGS="-fPIC"
+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
+PLIST_DIRS= lib/arj
MAN1= arj-register.1 arj.1 arjdisp.1 rearj.1
-post-extract:
+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)