diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-04-18 03:27:49 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-04-18 03:27:49 +0800 |
commit | af187c06f6711dba00f19cd440885927e01826b2 (patch) | |
tree | 04c50c67316b1b1345bac7adf1a3720fbe94e3e1 /games | |
parent | a5b6a0391f55adc2bfbe5e5a8e1512e6d0364efc (diff) | |
download | freebsd-ports-gnome-af187c06f6711dba00f19cd440885927e01826b2.tar.gz freebsd-ports-gnome-af187c06f6711dba00f19cd440885927e01826b2.tar.zst freebsd-ports-gnome-af187c06f6711dba00f19cd440885927e01826b2.zip |
- Add OPTIMIZED_CFLAGS option.
- Add message to pkg-plist about installed files that weren't removed.
- Fix building of binaries (missing macro definition: "WF").
Approved by: garga (mentor)
Diffstat (limited to 'games')
-rw-r--r-- | games/wolf3d/Makefile | 5 | ||||
-rw-r--r-- | games/wolf3d/files/patch-Makefile | 4 | ||||
-rw-r--r-- | games/wolf3d/pkg-plist | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/games/wolf3d/Makefile b/games/wolf3d/Makefile index 259d99a54a0b..8786e25d92e2 100644 --- a/games/wolf3d/Makefile +++ b/games/wolf3d/Makefile @@ -21,6 +21,7 @@ COMMENT= "Wolfenstein 3D Linux" by Steven Fuller (1992) USE_SDL= sdl OPTIONS= WOLF_SW "Install shareware data for Wolfenstein 3D" on \ + OPTIMIZED_CFLAGS "Enable compilation optimizations" on \ SPEAR_SW "Install shareware data for Spear of Destiny" off SUB_FILES= pkg-message wolf3d @@ -42,6 +43,10 @@ PLIST_SUB+= WOLF_SW="" PLIST_SUB+= WOLF_SW="@comment " .endif +.if !defined(WITHOUT_OPTIMIZED_CFLAGS) +MAKE_ENV+= OPT_CF="-O2 -fomit-frame-pointer -ffast-math -funroll-loops" +.endif + .if defined(WITH_SPEAR_SW) DISTFILES+= speardata${EXTRACT_SUFX}:sw PLIST_SUB+= SPEAR_SW="" diff --git a/games/wolf3d/files/patch-Makefile b/games/wolf3d/files/patch-Makefile index e5448adb329c..ad46434f13a9 100644 --- a/games/wolf3d/files/patch-Makefile +++ b/games/wolf3d/files/patch-Makefile @@ -1,12 +1,12 @@ --- Makefile.orig Thu Sep 27 20:58:29 2001 -+++ Makefile Sun Apr 9 10:34:17 2006 ++++ Makefile Thu Apr 13 15:49:57 2006 @@ -1,7 +1,8 @@ -CC = gcc +#CC = gcc #CC = gcc-3.0 -CFLAGS = -g -Wall -pedantic -+CFLAGS += -O2 -fomit-frame-pointer -ffast-math -funroll-loops ++CFLAGS += $(OPT_CF) $(WF) +#CFLAGS = -g -Wall -pedantic #CFLAGS = -g -O2 -Wall -pedantic #CFLAGS = -Wall -O6 -fomit-frame-pointer -ffast-math -funroll-loops -mpentiumpro -mcpu=pentiumpro -march=pentiumpro diff --git a/games/wolf3d/pkg-plist b/games/wolf3d/pkg-plist index f7ff2eba0260..a38b162c5905 100644 --- a/games/wolf3d/pkg-plist +++ b/games/wolf3d/pkg-plist @@ -23,7 +23,7 @@ libexec/wolf3d/sdlwolf3d-ws %%SPEAR_SW%%%%DATADIR%%/vgagraph.sdm %%SPEAR_SW%%%%DATADIR%%/vgahead.sdm %%SPEAR_SW%%%%DATADIR%%/vswap.sdm -@dirrm %%DATADIR%% +@unexec rmdir %D/%%DATADIR%% 2>/dev/null || echo "If you are permanently removing this port, you should remove any Wolfenstein 3D and/or Spear Of Destiny data files left in %D/%%DATADIR%%." | fmt %%PORTDOCS%%@dirrm %%DOCSDIR%%/docs %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm libexec/wolf3d |