FreeBSD Bugzilla – Attachment 35814 Details for
Bug 57698
Add USE_APACHE knob to bsd.port.mk.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
bsd.port.mk.diff
bsd.port.mk.diff (text/plain), 1.49 KB, created by
Alex Dupre
on 2003-10-07 14:20:06 UTC
(
hide
)
Description:
bsd.port.mk.diff
Filename:
MIME Type:
Creator:
Alex Dupre
Created:
2003-10-07 14:20:06 UTC
Size:
1.49 KB
patch
obsolete
>--- bsd.port.mk.orig Tue Oct 7 11:45:46 2003 >+++ bsd.port.mk Tue Oct 7 12:46:34 2003 >@@ -357,6 +357,13 @@ > # If set to an unkown value, the port is marked BROKEN. > # > ## >+# USE_APACHE - Add Apache web server dependency. >+# >+# DEFAULT_APACHE_VER - Default Apache version. Can be overriden within a >+# port. Default: 2. >+# WANT_APACHE_VER - Says that the port requires this version. Legal >+# values: 13, 2. >+## > # USE_JAVA - Says that the port relies on the Java language. > # Implies inclusion of bsd.java.mk. (Also see > # that file for more information on USE_JAVA_*). >@@ -1045,6 +1052,34 @@ > BROKEN= "unknown OpenLDAP version: ${WANT_OPENLDAP_VER}" > .endif > .endif >+ >+.if defined(USE_APACHE) >+DEFAULT_APACHE_VER?= 2 >+ >+# Setting/finding Apache version we want. >+.if defined(WANT_APACHE_VER) >+APACHE_VER= ${WANT_APACHE_VER} >+.elif defined(WITH_APACHE_VER) >+APACHE_VER= ${WITH_APACHE_VER} >+.elif exists(${LOCALBASE}/include/apache2/apr.h) >+APACHE_VER= 2 >+.elif exists(${LOCALBASE}/include/apache/ap.h) >+APACHE_VER= 13 >+.else >+APACHE_VER= ${DEFAULT_APACHE_VER} >+.endif # WANT_APACHE >+ >+APXS?= ${LOCALBASE}/sbin/apxs >+APACHE_PORT?= ${PORTSDIR}/www/apache${APACHE_VER} >+ >+# And now we are checking if we can use it >+.if exists(${APACHE_PORT}) >+BUILD_DEPENDS+= ${APXS}:${APACHE_PORT} >+RUN_DEPENDS+= ${APXS}:${APACHE_PORT} >+.else >+BROKEN= "unknown Apache version: ${APACHE_VER}" >+.endif # Check for correct deps >+.endif # USE_APACHE > > .if defined(EMACS_PORT_NAME) > .include "${PORTSDIR}/Mk/bsd.emacs.mk"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57698
: 35814