=================================================================== RCS file: /cvs/ports/games/torcs/Makefile,v retrieving revision 1.8 retrieving revision 1.12 diff -u -r1.8 -r1.12 --- ports/games/torcs/Makefile 2012/02/02 17:25:07 1.8 +++ ports/games/torcs/Makefile 2017/12/08 13:03:45 1.12 @@ -1,24 +1,23 @@ -# $OpenBSD: Makefile,v 1.8 2012/02/02 17:25:07 yason Exp $ +# $OpenBSD: Makefile,v 1.12 2017/12/08 13:03:45 kirby Exp $ +# XXX doesn't build with MAKE_JOBS>1 + COMMENT = The Open Racing Car Simulator -DISTNAME = torcs-1.3.2 +DISTNAME = torcs-1.3.7 CATEGORIES = games x11 HOMEPAGE = http://torcs.sourceforge.net/ -#MAINTAINER = ??? +MAINTAINER = Kirill Bychkov # GPLv2 PERMIT_PACKAGE_CDROM = Yes -PERMIT_PACKAGE_FTP = Yes -PERMIT_DISTFILES_CDROM =Yes -PERMIT_DISTFILES_FTP = Yes WANTLIB += GL GLU ICE SM X11 Xext Xi Xmu Xrandr Xrender Xt Xxf86vm -WANTLIB += alut c glut m ogg openal png pthread stdc++ vorbis -WANTLIB += vorbisfile z +WANTLIB += alut c glut m ogg openal png pthread vorbis vorbisfile +WANTLIB += z MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=torcs/} EXTRACT_SUFX = .tar.bz2 @@ -29,15 +28,14 @@ audio/openal \ graphics/freeglut \ graphics/png +RUN_DEPENDS = devel/desktop-file-utils USE_GMAKE = Yes -USE_LIBTOOL = Yes CONFIGURE_STYLE = gnu -CONFIGURE_ARGS += ${CONFIGURE_SHARED} CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -pthread -lm -logg -lvorbis" -NO_REGRESS = Yes +NO_TEST = Yes ALL_TARGET = default INSTALL_TARGET = install datainstall @@ -51,8 +49,14 @@ post-patch: .for i in ${FILES} - perl -pi -e "s,/bin/bash,/bin/sh," \ + @perl -pi -e "s,/bin/bash,/bin/sh," \ ${WRKSRC}/${i} + @perl -pi -e "s,games\/,," \ + ${WRKSRC}/${i} .endfor + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/ + ${INSTALL_DATA} ${WRKSRC}/torcs.desktop ${PREFIX}/share/applications/ .include