diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-12 17:17:03 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-12 17:17:03 +0800 |
commit | b67ba60a7d0b5167d89ba666bdb676db02c386e2 (patch) | |
tree | 04c579b603f0b42fdce1b378ded7e40d5fd46081 /devel/linux-js | |
parent | 3bcf5fedc5e27b6566c20a0863f490c35386e192 (diff) | |
download | freebsd-ports-gnome-b67ba60a7d0b5167d89ba666bdb676db02c386e2.tar.gz freebsd-ports-gnome-b67ba60a7d0b5167d89ba666bdb676db02c386e2.tar.zst freebsd-ports-gnome-b67ba60a7d0b5167d89ba666bdb676db02c386e2.zip |
Convert to new options framework
Diffstat (limited to 'devel/linux-js')
-rw-r--r-- | devel/linux-js/Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/devel/linux-js/Makefile b/devel/linux-js/Makefile index 9850c63c45b8..45595e1aa9e0 100644 --- a/devel/linux-js/Makefile +++ b/devel/linux-js/Makefile @@ -21,9 +21,12 @@ MAN4= linux_js.4 PORTDOCS= joystick-api.txt USE_RCORDER= jscal.sh linux_js.sh -OPTIONS= LINUX "Linux mode support (i386/amd64 only)" on \ - JOY "PC joystick support" on \ - UHID "USB joystick support" on +OPTIONS_DEFINE= LINUX JOY UHID DOCS +OPTIONS_DEFAULT= LINUX JOY UHID + +LINUX_DESC= Linux mode support (i386/amd64 only) +JOY_DESC= PC joystick support +UHID_DESC= USB joystick support MAKE_ENV= WITHOUT_DEBUG=yes @@ -37,15 +40,15 @@ BROKEN= does not build IGNORE= requires kernel source files .endif -.if defined(WITHOUT_LINUX) +.if empty(PORT_OPTIONS:MLINUX) MAKE_ENV+= WITHOUT_LINUX=yes .endif -.if defined(WITHOUT_JOY) +.if empty(PORT_OPTIONS:MJOY) MAKE_ENV+= WITHOUT_JOY=yes .endif -.if defined(WITHOUT_UHID) +.if empty(PORT_OPTIONS:MUHID) MAKE_ENV+= WITHOUT_UHID=yes .endif @@ -61,7 +64,7 @@ post-install: .for s in 1 4 ${INSTALL_MAN} ${MAN${s}:S|^|${WRKSRC}/|} ${PREFIX}/man/man${s} .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/joystick-api.txt ${DOCSDIR} .endif |