mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 07:39:21 +02:00
* single source rpm
This commit is contained in:
parent
05a3d71c88
commit
659a481c3e
174
Makefile
174
Makefile
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2003/04/06]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2003/04/25]
|
||||||
#
|
#
|
||||||
default: help
|
default: help
|
||||||
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos macosx emx
|
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos macosx emx
|
||||||
@ -981,6 +981,163 @@ else
|
|||||||
TAROPT=vz
|
TAROPT=vz
|
||||||
TAREXT=.tar.gz
|
TAREXT=.tar.gz
|
||||||
endif
|
endif
|
||||||
|
override REQUIRE_PACKAGES=rtl
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
ifeq ($(CPU_TARGET),powerpc)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
ifeq ($(CPU_TARGET),sparc)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
ifeq ($(CPU_TARGET),x86_64)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),win32)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),os2)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),amiga)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),atari)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),sunos)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),sunos)
|
||||||
|
ifeq ($(CPU_TARGET),sparc)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),qnx)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netware)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),openbsd)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),openbsd)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),wdosx)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),palmos)
|
||||||
|
ifeq ($(CPU_TARGET),m68k)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),macos)
|
||||||
|
ifeq ($(CPU_TARGET),powerpc)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),macosx)
|
||||||
|
ifeq ($(CPU_TARGET),powerpc)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),emx)
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef REQUIRE_PACKAGES_RTL
|
||||||
|
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/$(OS_TARGET)/Makefile.fpc,$(PACKAGESDIR))))))
|
||||||
|
ifneq ($(PACKAGEDIR_RTL),)
|
||||||
|
ifneq ($(wildcard $(PACKAGEDIR_RTL)/$(OS_TARGET)),)
|
||||||
|
UNITDIR_RTL=$(PACKAGEDIR_RTL)/$(OS_TARGET)
|
||||||
|
else
|
||||||
|
UNITDIR_RTL=$(PACKAGEDIR_RTL)
|
||||||
|
endif
|
||||||
|
ifdef CHECKDEPEND
|
||||||
|
$(PACKAGEDIR_RTL)/$(FPCMADE):
|
||||||
|
$(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
|
||||||
|
override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
PACKAGEDIR_RTL=
|
||||||
|
UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
|
||||||
|
ifneq ($(UNITDIR_RTL),)
|
||||||
|
UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
|
||||||
|
else
|
||||||
|
UNITDIR_RTL=
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef UNITDIR_RTL
|
||||||
|
override COMPILER_UNITDIR+=$(UNITDIR_RTL)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
ifndef NOCPUDEF
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -1094,7 +1251,7 @@ override COMPILER:=$(FPC) $(FPCOPT)
|
|||||||
ifeq (,$(findstring -s ,$(COMPILER)))
|
ifeq (,$(findstring -s ,$(COMPILER)))
|
||||||
EXECPPAS=
|
EXECPPAS=
|
||||||
else
|
else
|
||||||
ifeq ($(OS_SOURCE),$(OS_TARGET))
|
ifeq ($(FULL_SOURCE),$(FULL_TARGET))
|
||||||
EXECPPAS:=@$(PPAS)
|
EXECPPAS:=@$(PPAS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -2019,7 +2176,6 @@ REDHATDIR=/usr/src/redhat
|
|||||||
RPMSOURCESDIR:=$(REDHATDIR)/SOURCES
|
RPMSOURCESDIR:=$(REDHATDIR)/SOURCES
|
||||||
RPMSPECDIR:=$(REDHATDIR)/SPECS
|
RPMSPECDIR:=$(REDHATDIR)/SPECS
|
||||||
RPMSRCDIR:=$(RPMSOURCESDIR)/fpc
|
RPMSRCDIR:=$(RPMSOURCESDIR)/fpc
|
||||||
DOCSRCDIR:=$(RPMSOURCESDIR)/fpcdoc
|
|
||||||
rpmcopy: distclean
|
rpmcopy: distclean
|
||||||
install -d $(REDHATDIR)
|
install -d $(REDHATDIR)
|
||||||
install -d $(RPMSPECDIR)
|
install -d $(RPMSPECDIR)
|
||||||
@ -2037,20 +2193,10 @@ rpmcopy: distclean
|
|||||||
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
||||||
|
$(COPYTREE) docs $(RPMSRCDIR)
|
||||||
find $(RPMSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
find $(RPMSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
||||||
cd $(RPMSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-$(RPMFPCVERSION)-src.tar.gz
|
cd $(RPMSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-$(RPMFPCVERSION)-src.tar.gz
|
||||||
ifndef NODOCS
|
|
||||||
rm -rf $(DOCSRCDIR)
|
|
||||||
cp $(CVSINSTALL)/fpc-docs.spec $(RPMSPECDIR)/fpc-docs-$(RPMFPCVERSION).spec
|
|
||||||
install -d $(DOCSRCDIR)
|
|
||||||
$(COPYTREE) docs $(DOCSRCDIR)
|
|
||||||
find $(DOCSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
|
||||||
cd $(DOCSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-docs-$(RPMFPCVERSION)-src.tar.gz
|
|
||||||
endif
|
|
||||||
rpm: checkfpcdir rpmcopy
|
rpm: checkfpcdir rpmcopy
|
||||||
cd $(RPMSPECDIR) ; rpm --nodeps -ba fpc-$(RPMFPCVERSION).spec
|
cd $(RPMSPECDIR) ; rpm --nodeps -ba fpc-$(RPMFPCVERSION).spec
|
||||||
ifndef NODOCS
|
|
||||||
cd $(RPMSPECDIR) ; rpm --nodeps -ba fpc-docs-$(RPMFPCVERSION).spec
|
|
||||||
endif
|
|
||||||
endif # spec found
|
endif # spec found
|
||||||
endif
|
endif
|
||||||
|
14
Makefile.fpc
14
Makefile.fpc
@ -586,7 +586,6 @@ REDHATDIR=/usr/src/redhat
|
|||||||
RPMSOURCESDIR:=$(REDHATDIR)/SOURCES
|
RPMSOURCESDIR:=$(REDHATDIR)/SOURCES
|
||||||
RPMSPECDIR:=$(REDHATDIR)/SPECS
|
RPMSPECDIR:=$(REDHATDIR)/SPECS
|
||||||
RPMSRCDIR:=$(RPMSOURCESDIR)/fpc
|
RPMSRCDIR:=$(RPMSOURCESDIR)/fpc
|
||||||
DOCSRCDIR:=$(RPMSOURCESDIR)/fpcdoc
|
|
||||||
rpmcopy: distclean
|
rpmcopy: distclean
|
||||||
install -d $(REDHATDIR)
|
install -d $(REDHATDIR)
|
||||||
install -d $(RPMSPECDIR)
|
install -d $(RPMSPECDIR)
|
||||||
@ -605,23 +604,12 @@ rpmcopy: distclean
|
|||||||
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
$(COPYTREE) Makefile* $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/man $(RPMSRCDIR)
|
||||||
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
$(COPYTREE) $(CVSINSTALL)/doc $(RPMSRCDIR)
|
||||||
|
$(COPYTREE) docs $(RPMSRCDIR)
|
||||||
find $(RPMSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
find $(RPMSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
||||||
cd $(RPMSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-$(RPMFPCVERSION)-src.tar.gz
|
cd $(RPMSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-$(RPMFPCVERSION)-src.tar.gz
|
||||||
# fpc-docs.rpm
|
|
||||||
ifndef NODOCS
|
|
||||||
rm -rf $(DOCSRCDIR)
|
|
||||||
cp $(CVSINSTALL)/fpc-docs.spec $(RPMSPECDIR)/fpc-docs-$(RPMFPCVERSION).spec
|
|
||||||
install -d $(DOCSRCDIR)
|
|
||||||
$(COPYTREE) docs $(DOCSRCDIR)
|
|
||||||
find $(DOCSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
|
||||||
cd $(DOCSRCDIR) ; tar cvz * > $(RPMSOURCESDIR)/fpc-docs-$(RPMFPCVERSION)-src.tar.gz
|
|
||||||
endif
|
|
||||||
|
|
||||||
rpm: checkfpcdir rpmcopy
|
rpm: checkfpcdir rpmcopy
|
||||||
cd $(RPMSPECDIR) ; rpm --nodeps -ba fpc-$(RPMFPCVERSION).spec
|
cd $(RPMSPECDIR) ; rpm --nodeps -ba fpc-$(RPMFPCVERSION).spec
|
||||||
ifndef NODOCS
|
|
||||||
cd $(RPMSPECDIR) ; rpm --nodeps -ba fpc-docs-$(RPMFPCVERSION).spec
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif # spec found
|
endif # spec found
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user