[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DIFF : pilot-link
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: DIFF : pilot-link
- From: Antoine Jacoutot <ajacoutot_(_at_)_lphp_(_dot_)_org>
- Date: Mon, 10 Jan 2005 13:27:02 +0100
Hi :)
Here is a little diff for pilot-link to better check wether an older version
is installed before trying to compile. Taken from the mail/evolution port.
Antoine
--- Makefile.orig Tue Jan 4 11:28:26 2005
+++ Makefile Tue Jan 4 11:28:09 2005
@@ -28,10 +28,6 @@
MODULES= converters/libiconv
LIB_DEPENDS= png.4::graphics/png
-.if exists(${LOCALBASE}/lib/libpisock.a)
-BROKEN= "You must remove the existing pilot-link installation before compiling this version"
-.endif
-
.if ${MACHINE_ARCH} == "powerpc"
PATCH_LIST= patch-* gcc-*
.endif
@@ -51,5 +47,22 @@
--without-java \
--without-python \
--without-tcl
+
+pre-configure:
+ @if pkg dependencies check pilot-link-\*; then \
+ if pkg dependencies check ${DISTNAME}; then \
+ :; \
+ else \
+ echo 1>&2 "+-------------------"; \
+ echo 1>&2 "| Error: you must remove the existing pilot-link installation"; \
+ echo 1>&2 "| before compiling this version. To fully remove run"; \
+ echo 1>&2 "| these commands as user root"; \
+ echo 1>&2 "|"; \
+ echo 1>&2 "| pkg_delete -f `pkg_info -e 'pilot-link-*'`"; \
+ echo 1>&2 "|"; \
+ echo 1>&2 "+-------------------"; \
+ exit 1; \
+ fi; \
+ fi
.include <bsd.port.mk>
Visit your host, monkey.org