=================================================================== RCS file: /cvs/ports/games/sumwars/Attic/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ports/games/sumwars/Attic/Makefile 2011/11/13 12:41:35 1.1 +++ ports/games/sumwars/Attic/Makefile 2011/12/31 13:39:26 1.2 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2011/11/13 12:41:35 yason Exp $ +# $OpenBSD: Makefile,v 1.2 2011/12/31 13:39:26 yason Exp $ COMMENT = open source role-playing game @@ -17,8 +17,9 @@ PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes -WANTLIB += OgreMain OgreTerrain X11 alut c enet lua m ogg openal -WANTLIB += physfs pthread stdc++ vorbis vorbisfile +WANTLIB += CEGUIBase CEGUIOgreRenderer OIS OgreMain OgreTerrain +WANTLIB += X11 alut c enet lua m ogg openal physfs pthread stdc++ +WANTLIB += vorbis vorbisfile MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=sumwars/} EXTRACT_SUFX = .tgz @@ -26,14 +27,14 @@ MODULES = devel/cmake \ devel/gettext #BUILD_DEPENDS = ??? -#RUN_DEPENDS = ??? +RUN_DEPENDS = devel/desktop-file-utils LIB_DEPENDS = audio/freealut \ audio/libvorbis \ audio/openal \ devel/physfs \ devel/ois \ - graphics/cegui07 \ - graphics/ogre3d \ + x11/cegui \ + x11/ogre \ lang/lua \ net/enet @@ -42,5 +43,11 @@ -DNO_ENET=ON NO_REGRESS = Yes + +pre-configure: + @perl -pi -e 's|/usr/lib/OGRE|${LOCALBASE}/lib/OGRE|g' ${WRKSRC}/plugins.cfg \ + ${WRKSRC}/src/gui/application.cpp + perl -pi -e 's|/usr/games|${LOCALBASE}/games|g' ${WRKSRC}/packaging/sumwars.desktop + perl -pi -e 's|/usr/share|${LOCALBASE}/share|g' ${WRKSRC}/packaging/sumwars.desktop .include