1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

games/scummvm: Simplify Makefile

* Add "USES=localbase" to get rid of the configure parameters that
  contain ${LOCALBASE}.

* Remove the patch for the configure script, which is no longer needed.

* Pet portclippy as well.

* No bump of PORTREVISION as the resulting package doesn't change.
This commit is contained in:
Kai Knoblich 2023-02-26 17:13:02 +01:00
parent d5ec892d45
commit a0edaf8ce5
2 changed files with 3 additions and 31 deletions

View File

@ -21,11 +21,12 @@ LIB_DEPENDS= liba52.so:audio/liba52 \
libtheoradec.so:multimedia/libtheora \
libvorbis.so:audio/libvorbis
USES= compiler:c++11-lang cpe gl gmake gnome iconv jpeg pkgconfig sdl tar:xz
USES= compiler:c++11-lang cpe gl gmake gnome iconv jpeg \
localbase:ldflags pkgconfig sdl tar:xz
USE_GL= gl glew
HAS_CONFIGURE= yes
USE_SDL= sdl2
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alsa \
--disable-debug \
--disable-fluidlite \
@ -33,13 +34,6 @@ CONFIGURE_ARGS= --disable-alsa \
--disable-nasm \
--disable-tremor \
--enable-verbose-build \
--with-a52-prefix=${LOCALBASE} \
--with-jpeg-prefix=${LOCALBASE} \
--with-mad-prefix=${LOCALBASE} \
--with-ogg-prefix=${LOCALBASE} \
--with-png-prefix=${LOCALBASE} \
--with-sdl-prefix=${LOCALBASE} \
--with-vorbis-prefix=${LOCALBASE} \
--with-zlib-prefix=/usr
LDFLAGS+= -lpthread
@ -54,25 +48,20 @@ TTS_DESC= Text-to-Speech support
XENGINES_DESC= Experimental/Unstable engine support
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_ON= --with-libcurl-prefix=${LOCALBASE}
CURL_CONFIGURE_OFF= --disable-libcurl
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
FLAC_CONFIGURE_ON= --with-flac-prefix=${LOCALBASE}
FLAC_CONFIGURE_OFF= --disable-flac
FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
FLUIDSYNTH_CONFIGURE_ON= --with-fluidsynth-prefix=${LOCALBASE}
FLUIDSYNTH_CONFIGURE_OFF= --disable-fluidsynth
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
GIF_CONFIGURE_ON= --with-gif-prefix=${LOCALBASE}
GIF_CONFIGURE_OFF= --disable-gif
MT32EMU_CONFIGURE_OFF= --disable-mt32emu
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CONFIGURE_ON= --with-sndio-prefix=${LOCALBASE}
SNDIO_CONFIGURE_OFF= --disable-sndio
TTS_LIB_DEPENDS= libspeechd.so:accessibility/speech-dispatcher
@ -88,10 +77,6 @@ XENGINES_CONFIGURE_OFF= --disable-all-unstable-engines
CONFIGURE_ENV+= ASFLAGS=-meabi=5
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/dists/${PORTNAME}.desktop \
${STAGEDIR}${DESKTOPDIR}

View File

@ -1,13 +0,0 @@
--- configure.orig 2023-02-13 22:19:22 UTC
+++ configure
@@ -3019,8 +3019,8 @@ EOF
fi
;;
freebsd* | dragonfly*)
- append_var LDFLAGS "-L/usr/local/lib"
- append_var CXXFLAGS "-I/usr/local/include"
+ append_var LDFLAGS "-L%%LOCALBASE%%/lib"
+ append_var CXXFLAGS "-I%%LOCALBASE%%/include"
;;
gamecube)
_optimization_level=-Os