aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ltxml/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-21 06:25:47 +0800
committerpav <pav@FreeBSD.org>2004-08-21 06:25:47 +0800
commit550b7f00e3c87ab19ea1b43c822828ac2fe6fd62 (patch)
treeb1362c2c22219b96c91bfa429981ff2e941702a2 /textproc/ltxml/Makefile
parent98ef786067230fa25661a421bc2a6771ac4d6e97 (diff)
downloadfreebsd-ports-graphics-550b7f00e3c87ab19ea1b43c822828ac2fe6fd62.tar.gz
freebsd-ports-graphics-550b7f00e3c87ab19ea1b43c822828ac2fe6fd62.tar.zst
freebsd-ports-graphics-550b7f00e3c87ab19ea1b43c822828ac2fe6fd62.zip
- Convert to OPTIONS
PR: ports/70722 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Diffstat (limited to 'textproc/ltxml/Makefile')
-rw-r--r--textproc/ltxml/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/textproc/ltxml/Makefile b/textproc/ltxml/Makefile
index 1fa7c1397b0..6cc346dce9d 100644
--- a/textproc/ltxml/Makefile
+++ b/textproc/ltxml/Makefile
@@ -30,18 +30,14 @@ PROGRAMS= getindex intersect knit nslshowddb nslwhere pesis sgcount \
sggrep sgmlsb sgmlseg sgmltrans sgrpg sgsort simple simpleq \
textonly unknit xmlnorm
+OPTIONS= OPTIMIZED_CFLAGS "Extra optimizations" off
+
.include <bsd.port.pre.mk>
+
.ifdef WITH_OPTIMIZED_CFLAGS
CFLAGS+= -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations -O3
.endif
-pre-everything::
-.ifndef(WITH_OPTIMIZED_CFLAGS)
- @${ECHO_MSG} '===>'
- @${ECHO_MSG} '===> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS'
- @${ECHO_MSG} "===> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
-.endif
-
post-install:
.for file in ${PROGRAMS:S/sgmlseg//}
${STRIP_CMD} ${PREFIX}/bin/${file}