1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/devel/upnp/files/patch-makefile
Clive Lin 2711126f9a New port: SDK for UPnP Devices
This is Linux SDK for UPnP Devices 1.0, an Open Source
Universal Plug and Play Development Kit.

PR: ports/41294
Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com>
2002-08-04 07:31:27 +00:00

46 lines
1.6 KiB
Plaintext

--- makefile.orig Thu Aug 16 02:20:11 2001
+++ makefile Sat Aug 3 17:22:35 2002
@@ -29,11 +29,11 @@
##
###########################################################################
-MAKE = make
+MAKE = gmake
UPNP = bin/libupnp.so
SUBDIRS = src
-VERSION=1.0.4
+VERSION=1
ifeq ($(DEBUG),1)
STRIPU =
@@ -102,17 +102,17 @@
@if [ -f "doc/upnpsdk.aux" ]; then rm doc/upnpsdk.aux; fi
install: upnp
- @install -d /usr/include/upnp
- @install -d /usr/include/upnp/upnpdom
- @install -d /usr/include/upnp/tools
- @install bin/libupnp.so /usr/lib/libupnp.so.$(VERSION)
- ln -s /usr/lib/libupnp.so.$(VERSION) /usr/lib/libupnp.so
- @install inc/*.h /usr/include/upnp
- @install inc/upnpdom/*.h /usr/include/upnp/upnpdom
- @install inc/tools/*.h /usr/include/upnp/tools
+ @install -d ${PREFIX}/include/upnp
+ @install -d ${PREFIX}/include/upnp/upnpdom
+ @install -d ${PREFIX}/include/upnp/tools
+ @install bin/libupnp.so ${PREFIX}/lib/libupnp.so.$(VERSION)
+ ln -fs ${PREFIX}/lib/libupnp.so.$(VERSION) ${PREFIX}/lib/libupnp.so
+ @install inc/*.h ${PREFIX}/include/upnp
+ @install inc/upnpdom/*.h ${PREFIX}/include/upnp/upnpdom
+ @install inc/tools/*.h ${PREFIX}/include/upnp/tools
uninstall:
- @if [ -d /usr/include/upnp ]; then rm -rf /usr/include/upnp; fi
- @if [ -f /usr/lib/libupnp.so ]; then rm /usr/lib/libupnp.so; fi
- @if [ -f /usr/lib/libupnp.so.$(VERSION) ]; then rm /usr/lib/libupnp.so.$(VERSION); fi
+ @if [ -d ${PREFIX}/include/upnp ]; then rm -rf ${PREFIX}/include/upnp; fi
+ @if [ -f ${PREFIX}/lib/libupnp.so ]; then rm ${PREFIX}/lib/libupnp.so; fi
+ @if [ -f ${PREFIX}/lib/libupnp.so.$(VERSION) ]; then rm ${PREFIX}/lib/libupnp.so.$(VERSION); fi