Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137952563
D1582.id3303.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
926 B
Referenced Files
None
Subscribers
None
D1582.id3303.diff
View Options
Index: Mk/Uses/jpeg.mk
===================================================================
--- /dev/null
+++ Mk/Uses/jpeg.mk
@@ -0,0 +1,33 @@
+# $FreeBSD$
+#
+# Handle dependency on jpeg
+#
+# Feature: jpeg
+# Usage: USES=jpeg or USES=jpeg:ARGS
+# Valid ARGS: lib (default, implicit), build, run, both
+#
+# MAINTAINER: portmgr@FreeBSD.org
+
+.if !defined(_INCLUDE_USES_JPEG_MK)
+
+_INCLUDE_USES_JPEG_MK= yes
+_JPEG_PORT?= graphics/jpeg
+
+.if empty(jpeg_ARGS)
+jpeg_ARGS= lib
+.endif
+
+.if ${jpeg_ARGS} == lib
+LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/${_JPEG_PORT}
+.elif ${jpeg_ARGS} == build
+BUILD_DEPENDS+= cjpeg:${PORTSDIR}/${_JPEG_PORT}
+.elif ${jpeg_ARGS} == run
+RUN_DEPENDS+= cjpeg:${PORTSDIR}/${_JPEG_PORT}
+.elif ${jpeg_ARGS} == both
+BUILD_DEPENDS+= cjpeg:${PORTSDIR}/${_JPEG_PORT}
+RUN_DEPENDS+= cjpeg:${PORTSDIR}/${_JPEG_PORT}
+.else
+IGNORE= USES=jpeg - invalid args: [${jpeg_ARGS}] specified
+.endif
+
+.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 28, 3:29 PM (10 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26287102
Default Alt Text
D1582.id3303.diff (926 B)
Attached To
Mode
D1582: USES=jpeg
Attached
Detach File
Event Timeline
Log In to Comment