FreeBSD Bugzilla – Attachment 168925 Details for
Bug 208120
devel/cmake: Strips necessary rpath when installing any GNU compiler from ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Self-contained fortran+CMake example
bug208120.shar (text/plain), 2.17 KB, created by
Raphael Kubo da Costa
on 2016-04-03 11:56:42 UTC
(
hide
)
Description:
Self-contained fortran+CMake example
Filename:
MIME Type:
Creator:
Raphael Kubo da Costa
Created:
2016-04-03 11:56:42 UTC
Size:
2.17 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># bug208120 ># bug208120/Makefile ># bug208120/files ># bug208120/files/CMakeLists.txt ># bug208120/files/sum.f90 ># bug208120/pkg-descr ># >echo c - bug208120 >mkdir -p bug208120 > /dev/null 2>&1 >echo x - bug208120/Makefile >sed 's/^X//' >bug208120/Makefile << 'bd0c36d56acba333b7104ca264b5db1b' >XPORTNAME= bug208120 >XPORTVERSION= 1.0 >XCATEGORIES= math >XDISTFILES= # >X >XMAINTAINER= kde@FreeBSD.org >XCOMMENT= Test port for bug 208120 >X >XUSES= cmake:outsource fortran >X >XPLIST_FILES= bin/bug208120 >X >Xdo-extract: >X ${MKDIR} ${WRKSRC} >X ${CP} -a ${FILESDIR}/ ${WRKSRC} >X >X.include <bsd.port.mk> >bd0c36d56acba333b7104ca264b5db1b >echo c - bug208120/files >mkdir -p bug208120/files > /dev/null 2>&1 >echo x - bug208120/files/CMakeLists.txt >sed 's/^X//' >bug208120/files/CMakeLists.txt << '89468177ed35ae5ede1f80e5dbd72aef' >X# CMakeLists taken from example sdr-wspr port / wrkdir >X# by db@ . sum.f90 taken from https://en.wikibooks.org/wiki/Fortran/Fortran_examples >X >Xcmake_minimum_required(VERSION 2.8.8) >Xproject(bug208120) >Xenable_language(Fortran) >X >Xadd_executable(bug208120 sum.f90) >Xinstall(TARGETS bug208120 DESTINATION bin) >89468177ed35ae5ede1f80e5dbd72aef >echo x - bug208120/files/sum.f90 >sed 's/^X//' >bug208120/files/sum.f90 << '1b724fe3bb37e84cca885a836061fed9' >X! sum.f90 >X! Performs summations using in a loop using EXIT statement >X! Saves input information and the summation in a data file >X >Xprogram summation >Ximplicit none >Xinteger :: sum, a >X >Xprint*, "This program performs summations. Enter 0 to stop." >Xopen(unit=10, file="SumData.DAT") >X >Xsum = 0 >X >Xdo >X print*, "Add:" >X read*, a >X if (a == 0) then >X exit >X else >X sum = sum + a >X end if >X write(10,*) a >Xend do >X >Xprint*, "Summation =", sum >Xwrite(10,*) "Summation =", sum >Xclose(10) >X >Xend >1b724fe3bb37e84cca885a836061fed9 >echo x - bug208120/pkg-descr >sed 's/^X//' >bug208120/pkg-descr << '279e78660f45e5c4d8d36917cd2b73a2' >XTest for FreeBSD bug 208120. >279e78660f45e5c4d8d36917cd2b73a2 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208120
:
168368
|
168796
| 168925 |
179810