diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-01-01 21:42:54 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2018-01-01 21:42:54 +0800 |
commit | 19a63bf6383364ed5252a57b59c80c095b02cf7b (patch) | |
tree | 38db9f1d8ee32af4ab5c52ef2f7c2b9aef2a174d /games/aquaria | |
parent | be214fa55f98d07d26bc2bc15cbea7862456485c (diff) | |
download | freebsd-ports-gnome-19a63bf6383364ed5252a57b59c80c095b02cf7b.tar.gz freebsd-ports-gnome-19a63bf6383364ed5252a57b59c80c095b02cf7b.tar.zst freebsd-ports-gnome-19a63bf6383364ed5252a57b59c80c095b02cf7b.zip |
Improve CMake style in my ports
- Convert to CMAKE_{ON,OFF} helpers
- Convert to _CMAKE_BOOL option helpers
- android-file-transfer: Share _CMAKE_BOOL via _IMPLIES
- Annotate types
Diffstat (limited to 'games/aquaria')
-rw-r--r-- | games/aquaria/Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/games/aquaria/Makefile b/games/aquaria/Makefile index ad61f79925a7..64e6d9328836 100644 --- a/games/aquaria/Makefile +++ b/games/aquaria/Makefile @@ -26,16 +26,16 @@ USES= cmake lua:51 openal pkgconfig EXCLUDE= AL FTGL GL SDL* freetype2 glm glpng/png glpng/zlib \ libogg-* libvorbis-* lua-* tinyxml2* EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ExternalLibs/,} -CMAKE_ARGS+= -DAQUARIA_DEFAULT_DATA_DIR="${DATADIR}" \ - -DAQUARIA_INTERNAL_FREETYPE=off \ - -DAQUARIA_INTERNAL_FTGL=off \ - -DAQUARIA_INTERNAL_LUA=off \ - -DAQUARIA_INTERNAL_OGGVORBIS=off \ - -DAQUARIA_INTERNAL_OPENAL=off \ - -DAQUARIA_INTERNAL_PNG=off \ - -DAQUARIA_INTERNAL_SDL=off \ - -DAQUARIA_INTERNAL_TINYXML2=off \ - -DAQUARIA_INTERNAL_ZLIB=off +CMAKE_ARGS= AQUARIA_DEFAULT_DATA_DIR:PATH="${DATADIR}" +CMAKE_OFF= AQUARIA_INTERNAL_FREETYPE \ + AQUARIA_INTERNAL_FTGL \ + AQUARIA_INTERNAL_LUA \ + AQUARIA_INTERNAL_OGGVORBIS \ + AQUARIA_INTERNAL_OPENAL \ + AQUARIA_INTERNAL_PNG \ + AQUARIA_INTERNAL_SDL \ + AQUARIA_INTERNAL_TINYXML2 \ + AQUARIA_INTERNAL_ZLIB LDFLAGS+= -Wl,--as-needed # avoid overlinking (vorbis deps) SUB_FILES= pkg-message PLIST_FILES= bin/aquaria @@ -52,7 +52,7 @@ OPTIONS_DEFINE= DEBUG SDL2 OPTIONS_DEFAULT=SDL2 SDL2_DESC= Use SDL 2.x instead of SDL 1.2.x -SDL2_CMAKE_ON= -DAQUARIA_USE_SDL2=on +SDL2_CMAKE_BOOL=AQUARIA_USE_SDL2 SDL2_USE= SDL=sdl2 SDL2_USE_OFF= SDL=sdl |