pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

codelite: Cleanup package and prepare for import



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Jun 15 23:41:28 2016 +0200
Changeset:	f6c27dbe974cbad912c6f00c832df0b99189c264

Modified Files:
	codelite/Makefile

Log Message:
codelite: Cleanup package and prepare for import

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f6c27dbe974cbad912c6f00c832df0b99189c264

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 codelite/Makefile | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diffs:
diff --git a/codelite/Makefile b/codelite/Makefile
index 3e17770..a5a9b54 100644
--- a/codelite/Makefile
+++ b/codelite/Makefile
@@ -15,20 +15,25 @@ USE_LANGUAGES=		c c++
 USE_TOOLS+=		pkg-config bash
 
 CMAKE_ARGS+=		-DPREFIX:STRING=${PREFIX}
-#CMAKE_ARGS.FreeBSD+=	-DIS_FREEBSD:STRING=1
-#CMAKE_ARGS.NetBSD+=	-DIS_NETBSD:STRING=1
-#CMAKE_ARGS+=		-DIS_NETBSD:BOOL=ON
 
-SUBST_CLASSES+=			fix-paths
-SUBST_STAGE.fix-paths=		pre-configure
-SUBST_MESSAGE.fix-paths=	Enable NetBSD
-SUBST_FILES.fix-paths=		CMakeLists.txt
-SUBST_SED.fix-paths+=		-e 's,IS_NETBSD 0,IS_NETBSD 1,g'
+# For some reason CMAKE_ARGS.NetBSD+=-DIS_NETBSD:STRING=1 doesn't work for me
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+SUBST_CLASSES+=			ena-netbsd
+SUBST_STAGE.ena-netbsd=		pre-configure
+SUBST_MESSAGE.ena-netbsd=	Enable NetBSD
+SUBST_FILES.ena-netbsd=		CMakeLists.txt
+SUBST_SED.ena-netbsd+=		-e 's,IS_NETBSD 0,IS_NETBSD 1,g'
+.endif
 
 SUBST_CLASSES+=			fix-bash
 SUBST_STAGE.fix-bash=		pre-configure
 SUBST_MESSAGE.fix-bash=		Fix bash path
-SUBST_FILES.fix-bash=		CodeLite/TerminalEmulator.cpp CodeLite/fileextmanager.cpp Runtime/codelite_xterm cmake/Modules/OSXInstall.cmake
+SUBST_FILES.fix-bash=		CodeLite/TerminalEmulator.cpp
+SUBST_FILES.fix-bash+=		CodeLite/fileextmanager.cpp
+SUBST_FILES.fix-bash+=		Runtime/codelite_xterm
+SUBST_FILES.fix-bash+=		cmake/Modules/OSXInstall.cmake
 SUBST_SED.fix-bash+=		-e 's,/bin/bash,${BASH},g'
 
 REPLACE_BASH+=		Runtime/clg++


Home | Main Index | Thread Index | Old Index