From 9d0462137c48a149b41ffc8cce183999374c8683 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Wed, 13 Feb 2013 08:58:16 +0100 Subject: Moved much code into new files for configuring and packaging. --- cmake/package.cmake | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 cmake/package.cmake (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake new file mode 100644 index 00000000..27fe285d --- /dev/null +++ b/cmake/package.cmake @@ -0,0 +1,38 @@ +# +# cmake/package --- CMake input file for gawk +# +# Copyright (C) 2013 +# the Free Software Foundation, Inc. +# +# This file is part of GAWK, the GNU implementation of the +# AWK Programming Language. +# +# GAWK is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# GAWK is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +# + +## process this file with CMake to produce Makefile + +SET(CPACK_GENERATOR "TGZ") +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is GNU Awk ${GAWK_VERSION}") +SET(CPACK_PACKAGE_NAME "gawk") +SET(CPACK_PACKAGE_VERSION "${GAWK_VERSION}") +SET(CPACK_PACKAGE_VERSION_MAJOR "${GAWK_MAJOR_VERSION}") +SET(CPACK_PACKAGE_VERSION_MINOR "${GAWK_MINOR_VERSION}") +SET(CPACK_PACKAGE_VERSION_PATCH "${GAWK_BUGFIX_VERSION}") +SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") +SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README") +SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) + +INCLUDE(CPack) -- cgit v1.2.3 From 284608d0645dcb90d0a443f155bb9e513eaf9eff Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Mon, 18 Feb 2013 19:28:36 +0100 Subject: Preparations for building an NSIS installer. --- cmake/package.cmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake index 27fe285d..ffea3f04 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -24,7 +24,14 @@ ## process this file with CMake to produce Makefile -SET(CPACK_GENERATOR "TGZ") +IF (WIN32) + SET(CPACK_GENERATOR "NSIS") + set(CPACK_NSIS_INSTALL_ROOT "C:") +ELSE() + SET(CPACK_GENERATOR "TGZ") + SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) +ENDIF() + SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is GNU Awk ${GAWK_VERSION}") SET(CPACK_PACKAGE_NAME "gawk") SET(CPACK_PACKAGE_VERSION "${GAWK_VERSION}") @@ -33,6 +40,5 @@ SET(CPACK_PACKAGE_VERSION_MINOR "${GAWK_MINOR_VERSION}") SET(CPACK_PACKAGE_VERSION_PATCH "${GAWK_BUGFIX_VERSION}") SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README") -SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) INCLUDE(CPack) -- cgit v1.2.3 From 6c173e43fc3902e5dc4be1ed90aac7a66228628e Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Wed, 20 Feb 2013 19:49:19 +0100 Subject: Added instructions on building with MinGW on Ubuntu 12.04. --- cmake/package.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake index ffea3f04..7bbb1373 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -26,7 +26,7 @@ IF (WIN32) SET(CPACK_GENERATOR "NSIS") - set(CPACK_NSIS_INSTALL_ROOT "C:") + set(CPACK_NSIS_INSTALL_ROOT "C:/Programs") ELSE() SET(CPACK_GENERATOR "TGZ") SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) -- cgit v1.2.3 From caab17cf55dfe1122a4e1955236492423ff1ca40 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Thu, 21 Feb 2013 11:46:42 +0100 Subject: NSIS installer gets a nice little icon. --- cmake/package.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake index 7bbb1373..a7ebe447 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -27,12 +27,18 @@ IF (WIN32) SET(CPACK_GENERATOR "NSIS") set(CPACK_NSIS_INSTALL_ROOT "C:/Programs") + set(CPACK_NSIS_MENU_LINKS "http://www.gnu.org/software/gawk" "GNU Awk") + set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/auk.ico") + set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/cmake/auk.ico") + set(CPACK_NSIS_CONTACT "bug-gawk@gnu.org") + set(CPACK_NSIS_DISPLAY_NAME "GNU Awk") ELSE() SET(CPACK_GENERATOR "TGZ") SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) ENDIF() SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is GNU Awk ${GAWK_VERSION}") +set(CPACK_PACKAGE_VENDOR "GNU Project - Free Software Foundation (FSF)") SET(CPACK_PACKAGE_NAME "gawk") SET(CPACK_PACKAGE_VERSION "${GAWK_VERSION}") SET(CPACK_PACKAGE_VERSION_MAJOR "${GAWK_MAJOR_VERSION}") -- cgit v1.2.3 From 698b17a3422b7b9cc1e4ab078ed7f26cfa30c463 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 23 Feb 2013 17:25:46 +0100 Subject: cmake -DCPACK_GENERATOR=DEB allows to produce packages in format of Debian or RPM based distributions. --- cmake/package.cmake | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake index a7ebe447..62bf20e1 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -24,6 +24,17 @@ ## process this file with CMake to produce Makefile +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is GNU Awk ${GAWK_VERSION}") +set(CPACK_PACKAGE_VENDOR "GNU Project - Free Software Foundation (FSF)") +SET(CPACK_PACKAGE_NAME "gawk") +SET(CPACK_PACKAGE_VERSION "${GAWK_VERSION}") +SET(CPACK_PACKAGE_VERSION_MAJOR "${GAWK_MAJOR_VERSION}") +SET(CPACK_PACKAGE_VERSION_MINOR "${GAWK_MINOR_VERSION}") +SET(CPACK_PACKAGE_VERSION_PATCH "${GAWK_BUGFIX_VERSION}") +SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") +SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README") +set(CPACK_PACKAGE_CONTACT "bug-gawk@gnu.org") + IF (WIN32) SET(CPACK_GENERATOR "NSIS") set(CPACK_NSIS_INSTALL_ROOT "C:/Programs") @@ -33,18 +44,11 @@ IF (WIN32) set(CPACK_NSIS_CONTACT "bug-gawk@gnu.org") set(CPACK_NSIS_DISPLAY_NAME "GNU Awk") ELSE() - SET(CPACK_GENERATOR "TGZ") SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) + IF(NOT CPACK_GENERATOR) + SET(CPACK_GENERATOR "TGZ") + ENDIF() + message(STATUS "CPACK_GENERATOR set to ${CPACK_GENERATOR}") ENDIF() -SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "This is GNU Awk ${GAWK_VERSION}") -set(CPACK_PACKAGE_VENDOR "GNU Project - Free Software Foundation (FSF)") -SET(CPACK_PACKAGE_NAME "gawk") -SET(CPACK_PACKAGE_VERSION "${GAWK_VERSION}") -SET(CPACK_PACKAGE_VERSION_MAJOR "${GAWK_MAJOR_VERSION}") -SET(CPACK_PACKAGE_VERSION_MINOR "${GAWK_MINOR_VERSION}") -SET(CPACK_PACKAGE_VERSION_PATCH "${GAWK_BUGFIX_VERSION}") -SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") -SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README") - INCLUDE(CPack) -- cgit v1.2.3 From 119d46dcdfbc84058ea517ac1ec18bf3dbb26ec4 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Sat, 23 Feb 2013 18:29:03 +0100 Subject: .pdf files are now packaged into the doc directory. --- cmake/package.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake index 62bf20e1..b63c2863 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -37,7 +37,7 @@ set(CPACK_PACKAGE_CONTACT "bug-gawk@gnu.org") IF (WIN32) SET(CPACK_GENERATOR "NSIS") - set(CPACK_NSIS_INSTALL_ROOT "C:/Programs") + set(CPACK_NSIS_INSTALL_ROOT "C:") set(CPACK_NSIS_MENU_LINKS "http://www.gnu.org/software/gawk" "GNU Awk") set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/cmake/auk.ico") set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/cmake/auk.ico") -- cgit v1.2.3 From 1f4bd1601d0abb51db4cf28d0a3b51d8661bda94 Mon Sep 17 00:00:00 2001 From: Juergen Kahrs Date: Tue, 12 Aug 2014 17:10:28 +0200 Subject: Copyright notice updated. --- cmake/package.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/package.cmake') diff --git a/cmake/package.cmake b/cmake/package.cmake index b63c2863..203a8c3b 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -1,7 +1,7 @@ # # cmake/package --- CMake input file for gawk # -# Copyright (C) 2013 +# Copyright (C) 2013-2014 # the Free Software Foundation, Inc. # # This file is part of GAWK, the GNU implementation of the -- cgit v1.2.3