summaryrefslogtreecommitdiff
path: root/sysutils/kfloppy/Makefile
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-10-01 18:21:21 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-10-01 18:21:21 +0000
commit7ece2aeb0b244ca00c5e182c134fd0e0dc493847 (patch)
tree8f40d9cf63c53af474031c70489d609bb24236c7 /sysutils/kfloppy/Makefile
parentAdd deps, vars for autoconf, automake. 1st try (and hopefully only try) (diff)
1. Bump PORTREVISION to 1.
2. Change gross kluge for klaptopdaemon to use DO_NOT_COMPILE. 3. Added WITH_KFLOPPY knob, defaults to undefined. 3A. If WITH_KFLOPPY is not defined, then we add kfloppy to DO_NOT_COMPILE. 4. Anything that got put in DO_NOT_COMPILE then gets passed in the env to the configure script, which dutifully sets things up to not compile it. Approved by: kris
Notes
Notes: svn path=/head/; revision=67281
Diffstat (limited to 'sysutils/kfloppy/Makefile')
-rw-r--r--sysutils/kfloppy/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/sysutils/kfloppy/Makefile b/sysutils/kfloppy/Makefile
index 3ce4d66bd60b..1725a3ae4156 100644
--- a/sysutils/kfloppy/Makefile
+++ b/sysutils/kfloppy/Makefile
@@ -7,6 +7,7 @@
PORTNAME= kdeutils
PORTVERSION= ${KDE_VERSION}
+PORTREVISION= 1
CATEGORIES?= misc kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
@@ -25,13 +26,20 @@ MAN1= efax.1 efix.1 fax.1
#klaptop doesn't like alpha because alpha doesn't support apm
.if ${MACHINE_ARCH} == "alpha"
-post-extract:
- mv ${WRKSRC}/subdirs ${WRKSRC}/subdirs.orig
- grep -v klaptopdaemon ${WRKSRC}/subdirs.orig > ${WRKSRC}/subdirs
-
+DO_NOT_COMPILE+=klaptopdaemon
PLIST_SUB+= ALPHA_NA="@comment "
.else
PLIST_SUB+= ALPHA_NA=""
.endif
+# kfloppy is a mostly broken, non-standard, linux-centric pain...
+.if !defined(WITH_KFLOPPY)
+DO_NOT_COMPILE+=kfloppy
+PLIST_SUB+= KFLOPPY="@comment "
+.else
+PLIST_SUB+= KFLOPPY=""
+.endif
+.if defined(DO_NOT_COMPILE)
+CONFIGURE_ENV+= DO_NOT_COMPILE="${DO_NOT_COMPILE}"
+.endif
.include <bsd.port.mk>