Permalink
Browse files

Updated to latest unofficial release. Some things in the configure stage

work better. Package still doesn't build on amd64, though. Fetch happens
via cURL instead of manually. Removed depencency on p7zip. Removed dl libs
for non-Linux OSes. Buildlinked pthread, libXext, specified BUILD_DEPENDS
for bzip and GTK2.
  • Loading branch information...
1 parent 7227aae commit 3487ef6b25af060d69287c3b912ba851ea36b773 othyro committed Nov 10, 2012
Showing with 20 additions and 10 deletions.
  1. +20 −10 pcsx2/Makefile
View
@@ -1,31 +1,39 @@
# $NetBSD$
#
-DISTNAME= pcsx2-1.0.0-r5350-sources.7z
-PKGNAME= ${DISTNAME:S/-r5350-sources.7z//}
+DISTNAME= pcsx2-1.0.0r5412
CATEGORIES= emulators
-MASTER_SITES= http://pcsx2.net/
-EXTRACT_SUFX=
-EXTRACT_CMD= 7z x $$extract_file
+# The DISTFILE to download is an HTTP-only attachment.
+# The getsite.sh script uses cURL download the attached file.
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pcsx2.net/
COMMENT= Playstation 2 Emulator
#LICENSE= gnu-gpl-v3 AND modified-bsd AND expatobjc-license AND gnu-gpl-v2 AND gnu-lgpl-v2.1 AND gnu-lgpl-v3 AND public-domain
-BUILD_DEPENDS+= p7zip-[0-9]*:../../archivers/p7zip
-
-WRKSRC= ${WRKDIR}/pcsx2-1.0.0-r5350-sources
+WRKSRC= ${WRKDIR}/pcsx2-1.0.0
USE_LANGUAGES= c c++
-USE_TOOLS+= msgmerge
+USE_TOOLS+= gmake msgmerge
USE_CMAKE= yes
CMAKE_ARGS+= -DPACKAGE_MODE=1
CMAKE_ARGS+= -DCG_GL_LIBRARY=${BUILDLINK_PREFIX.Cg-compiler}/emul/linux32/lib/libCgGL.so
CMAKE_ARGS+= -DCG_LIBRARY=${BUILDLINK_PREFIX.Cg-compiler}/emul/linux32/lib/libCg.so
CMAKE_ARGS+= -DOPENGL_xmesa_INCLUDE_DIR=${BUILDLINK_PREFIX.MesaLib}/include/GL
-CMAKE_ARGS+= -Dlibdl=${DL_LIBS}
CMAKE_ARGS+= -DX11_ICE_INCLUDE_PATH=${BUILDLINK_PREFIX.libICE}/include/X11/ICE
+.include "../../mk/bsd.prefs.mk"
+
+.if $(OPSYS) != "Linux"
+BUILDLINK_TRANSFORM= rm:-ldl
+CMAKE_ARGS+= -Dlibdl=NO
+.else
+CMAKE_ARGS+= -Dlibdl=${DL_LIBS}
+.endif
+
+
+BUILD_DEPENDS+= gtk2+>=2.16:../../x11/gtk2
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/sparsehash/buildlink3.mk"
.include "../../wip/libSoundTouch/buildlink3.mk"
.include "../../audio/portaudio/buildlink3.mk"
@@ -39,6 +47,8 @@ CMAKE_ARGS+= -DX11_ICE_INCLUDE_PATH=${BUILDLINK_PREFIX.libICE}/include/X11/ICE
.include "../../mk/dlopen.buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
+BUILD_DEPENDS+= bzip2>=1.0.5:../../archivers/bzip2
.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
.include "../../audio/alsa-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

0 comments on commit 3487ef6

Please sign in to comment.