aboutsummaryrefslogtreecommitdiff
path: root/emulators/pcsxr
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2013-11-15 12:44:56 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2013-11-15 12:44:56 +0000
commit07d8868ecfe7063a9023ab78d83585b219e5f764 (patch)
tree571c732914141541f23419ad43956768f4145d42 /emulators/pcsxr
parent0fac70f5f040bf5ffcff4ce4eb513e8cee6948e7 (diff)
downloadports-07d8868ecfe7063a9023ab78d83585b219e5f764.tar.gz
ports-07d8868ecfe7063a9023ab78d83585b219e5f764.zip
- Enable staging
- Switch to new LIB_DEPENDS format - Strip shared libraries - Switch to new options format - Always stage documentation
Notes
Notes: svn path=/head/; revision=333857
Diffstat (limited to 'emulators/pcsxr')
-rw-r--r--emulators/pcsxr/Makefile34
-rw-r--r--emulators/pcsxr/pkg-plist1
2 files changed, 14 insertions, 21 deletions
diff --git a/emulators/pcsxr/Makefile b/emulators/pcsxr/Makefile
index 86e5d167be1c..853dc0774cac 100644
--- a/emulators/pcsxr/Makefile
+++ b/emulators/pcsxr/Makefile
@@ -3,6 +3,7 @@
PORTNAME= pcsxr
PORTVERSION= 1.9.94.r87113
+PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
LOCAL/martymac
@@ -13,8 +14,8 @@ COMMENT= Playstation (PSX) emulator
LICENSE= GPLv2
BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk
-LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \
- cdio:${PORTSDIR}/sysutils/libcdio
+LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
+ libcdio.so:${PORTSDIR}/sysutils/libcdio
ONLY_FOR_ARCHS= i386 amd64
@@ -25,6 +26,7 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_CSTD= gnu89
CONFIGURE_ARGS= --enable-opengl --enable-libcdio
+INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USE_DOS2UNIX= yes
@@ -36,29 +38,23 @@ USE_XORG= x11 xv xext xxf86vm xtst
USE_SDL= sdl
USE_GL= gl
-MAN1= pcsxr.1
PORTDOCS= ChangeLog README
# Default CDROM device to use with dfcdrom,
# accessed through libcdio (using cam(4) and pass(4))
DEFAULT_DVD_DEVICE?= /dev/cd0
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
+
+.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CONFIGURE_ARGS+= --enable-dynarec=x86_64
.endif
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS+= --enable-nls
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
# Add ${PREFIX} to plugins' lookup directories and set default CDROM device
post-patch:
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|" \
@@ -70,11 +66,7 @@ pre-configure:
@(cd ${WRKSRC} && ${AUTORECONF} -fi)
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
-.endif
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/emulators/pcsxr/pkg-plist b/emulators/pcsxr/pkg-plist
index 8c730ec50636..12ac90120738 100644
--- a/emulators/pcsxr/pkg-plist
+++ b/emulators/pcsxr/pkg-plist
@@ -1,4 +1,5 @@
bin/pcsxr
+man/man1/pcsxr.1.gz
%%NLS%%share/locale/fr_FR/LC_MESSAGES/pcsxr.mo
%%NLS%%share/locale/it/LC_MESSAGES/pcsxr.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/pcsxr.mo